make the in the code, getting wrong output
How to design a strtok for this problem Canyoureadthis?
hello @kishoretaru
we cannot use strtok function here because we dont have any well defined delimeter.
strtok is not required in this problem.
Loop through the string.
In each iteration look for the character
If the character is in capital case, then end the previous string and start a new string with this character
Example
PmsdamKnasdm
Output:
Pmsdam
Knasdm
Each word starts with a capital letter.
Can you change that in the code
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.