Repeated word in a string


this code is not working correctly although i have used everuthing right
mayb some problem with strtok

strtok function cannot be used twice in a program.
Refer this discussion Why does this code not work can strtok not be used for two variables simultaneously

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.