Can you give more insight into how the strtok function works and maintain the pointer . Also when the first string
is passed as argumnent and the strtok function is called for the very first time then , does the pointer that is returned contains all the tokens that have been created?
Insight into working of strtok function
hi @imsharan0105 is there something you did not understand from the video? If its something extra also you want to know please do tell I’ll be happy to help you, but please be a little specific.
About the token part, the string is broken as soon as a delimiter is encountered and only a single token is returned at a time. This is why we have to call the function again and again, to generate all the tokens.
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.