while initializing the ptr char variable, bhaiya used *ptr but while calling it he called it ptr.
yet the code is working…what is meant by that
while initializing the ptr char variable, bhaiya used *ptr but while calling it he called it ptr.
yet the code is working…what is meant by that
@vector.9974, ptr in this program is a character pointer, the function strtok returns a pointer to the beginning of the token,If a token is found,Otherwise, a null pointer . so we store the return value in ptr , and when we print ptr we get the token.
If you are have doubt in this do ask
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.