why is my code giving no output?
Smart Keypad-I recursion
I modified your code a bit. Check it and tell me if you are able to understand it.
Yes, I understand it. But what I don’t get is that i was getting no output with string but when i replaced string s and string temp with char arrays, I got my output.
character arrays always end with ‘\0’. And you were using strings in your code. That’s why you were not getting any output.
Okay, thank you I got it!
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.