About designing string tokenizer

i want to ask why variable used for maintaining is static not dynamic

Hey @manoj2597 in the main function we are maintaing a static variable because while sending arguments again to startok function, we have to keep a track that this much string has been operated and now we will operate on remaining string. Suppose your string was “ Today, is” now in first iteration it will read “Today, “ and after this it will read remaining string “is” so thats why the variable is static in nature.
If this solves your doubt, please mark it as resolved :slight_smile:

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.