Can you please take a review of this code ? because it didn't give the correct output

#include
using namespace std;
void Generate(char *ip , char op, int i , int j)
{
if(ip[i] == ‘\0’)
{
op[j] = ‘\0’;
cout<<op<<", ";
return ;
}
int fd = ip[i]-‘0’;
char ch = ‘a’+fd-1;
op[j] = ch;
Generate(ip,op,i+1,j+1);
if(ip[i+1]!=’\0’)
{
int sd = ip[i+1]-‘0’;
int no = 10
fd+sd;
if(no<=26)
{
char ch = ‘a’+no-1;
op[j] = ch;
Generate(ip,op,i+2,j+1);
}
}
}
int main()
{
char ip[100] , op[100];
cin>>ip;
cout<<’[’;
Generate(ip,op,0,0);
cout<<’]’;
return 0;
}

hi @deepshreyamishra301_1918130c8477386b,
updated and commented https://ide.codingblocks.com/s/662775

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.