My previous doubt is not clear . I didn’t understand why NULL we have intialize the subsequent string with NULL and also breaking the loop with NULL? kindly explain.
Regarding strtoK() function
@vanshikasharma1645 after initializing once, we pass NULL to subsequent calls because strtok retains it’s previous values!
also when the string/char is over, it points to NULL which tells us that string/char passed is fully processesed
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.