Recursion-Duplicate character formatting

I’m not getting any output.
Please help…

Prashant, use the function definition as : void duplicateChar(string &ip,string &op,int i), instead of wht you have used… and then try to see the code by submitting it…

1 Like

thank you…it worked!!