my code is giving output abcd to d instead of d to abcd please specify the changes in the code,
code : https://ide.codingblocks.com/s/216306
Wrong output , please have a look
@Chhayansh in this case what you can do is instead of printing your output inside your recursive function store them in a vector of strings and then print them inside main function in reverse order.
please make corrections in my code sir
code: https://ide.codingblocks.com/s/216306
m getting the wrong output–
m getting the first ch of each ans
@Chhayansh that is because i told you to make vector of strings but you have taken vector of char, i have corrected your code try this (ide.codingblocks.com/s/216509)
ohk thannks a lot sir
sir the code is running in ide but giving error “no output” in course editor
also it is not giving the last output abc instead of abcd
@Chhayansh there is some problem occurring in printing your answer with iterator i have updated it for you ,
look at this code it is getting submitted successfully (https://ide.codingblocks.com/s/216539)