codelink : https://pastebin.com/xjTa8fjb
please tell what’s wrong in my code and correct it
Recursion keypad code
@Divya_321
The character array ‘s’ simply serves no purpose. It doesn’t have anything stored in it and yet your base condition depends on it when you never actually assigned it any data. Your input is stored in string temp.
Change your base condition to match it to
if ( i == temp.size() )
The rest of the code need not be changed.
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.