Using string in place of char

In place of char, I am writing string, but then complier is not printing any output.

void subsequence(string in,string out,int i,int j)

{

if(in[i]==’\0’) { out[j]=’\0’; cout<<out<<endl;

return;

} out[j]=int[i];

subsequences(in,out,i+1,j+1);

subsequences(in, out,i+1,j);

}

@Sahil-98-Sharma
hello sahil,
pls share ur complete code

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.