Smart keypad-1(recursion)

#include
using namespace std;
char keypad[][10]={ " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };
void printkeypad(char in[],char out[],int i,int j){
if(in[i]==’\0’){
out[j]=’\0’;
cout<<out<<endl;
return ;
}
int digit=in[i]-‘0’;
if(digit==0){
printkeypad(in,out,i+1,j);
}
for(int k=0;keypad[digit][k]!=’\0’;k++){
out[j]=keypad[digit][k];
printkeypad(in,out,i+1,j+1);
}
}
int main(){
char in[100];
char out[100];
cin>>in;
printkeypad(in,out,0,0);
}
whats wrong in this code?

Please save your code on ide.codingblocks.com and then share its link.

Check now.

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.