Tokenization of string using strtok()

Why do we put a * before str while defining it.
what is its use??

hello @anshgoel_02

in this video we can nowhere use a * .
can u please share the code that u are talking about

char *ptr = strtok(s," ");

I’m sorry it was ptr not str

strok return pointer thats why we are using one pointer to store the returned address

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.