Not showing output

#include
using namespace std;

char table[][10] = { " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };
void generate(char *inp,char *out,int i,int j)
{
if(inp[i]==’\0’)
{
out[j]=’\0’;
cout<<out<<endl;
return;
}

int dig=inp[i]-'\0';
for(int k=0;table[dig][k]!='\0';k++)
{out[j]=table[dig][k];
 generate(inp,out,i+1,j+1);
}

return;

}
int main()
{ char s[100];
cin>>s;
char out[100];
generate(s,out,0,0);

return 0;

}

@himanshu24 please share your code using ide.codingblocks.com

Here’s the corrected code: https://ide.codingblocks.com/s/598808

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.