Doubt in my code

What is the issue with my code ?

Error was at line 17
Bug found
So I am Marking it as resolved.

hello @yashsharma4304
yeah that should be input in place of str.

also first print and then call strtok inside while loop becuase value return by strtok can be null
check now->

1 Like

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.