Can you please give the correct code for this

#include
using namespace std;
void subsequence(char *inp , char *out , int i , int j) {
if(inp[]=="\0"){
out[]=="\0";
cout<<out<<endl;
return;
}
subsequence(inp,out,i+1,j);
out[j]=inp[i];
subsequence(inp,out,i+1,j+1);
}
int main() {
char inp[100];
cin>> inp ;
char out[100];
cout<<subsequence(inp,out,0,0);
return 0;
}

Hi @abhigyankumar09 refer

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.