Why is this code not working?
Giving Errors
Why is this code not working? Giving Errors
Don’t use character arrays. Do this question using strings. Strings are easier to work with. Also instead of making changes to the original string, maintain a separate output string and pass it to our recursive function.
Facing this error
and How can I update it into out array.
Only character arrays end with \0. I made changes to your code. Please check 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.