Subsequences code help. is something wrong with this.give wrong ans on all lest cases

void subseq(char inp[],char out[],int i,int j){

if(inp[i]==’\0’){

out[j]='\0';

cout<<out<<" ";
return ;

}

out[j]=inp[i];

subseq(inp,out,i+1,j+1);

subseq(inp,out,i+1,j);

return;

}

hello @vaishnavi20001611
execute this statement first

and then these two

tried this but still not working …any other mistakes ?

pls share ur complete code using cb ide .
i will check

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.