(Key --) concept in extracttokens function

didnt understand why exactly is (key – )done in this tokenisation concept because for like values greater than 2 it will print all the tokens all together till the key turns to be 1

No , not all token
only token at given key
because we are storing that in a char array s
so every time it got overwritten
only last value will remain i.e the token at given key

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.