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;
}
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;
}
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.