As we are passing NULL the second time in the strtok function, it remembers where it was until the last call.
My doubt is, what if I have two string variables and i want to tokenize both of them?
how will it know which string am i taking about?
as we are not passing any string variable in the subsequent strtok calls, how will I be able to control two string variable tokenization in this case?
What if there are two or more variable strings
hi @righley if you want to tokenize more than 1 strings, you can make a function for doing string tokenization and call it as many times as you want.
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.