Why this code is not working properly?

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

return 0;

}

hey, refer this–>

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.