string s=“Today is a rainy day”;
char *ptr=strtok(s," ");
cout<<ptr;
My question is, we know that strtok returns the base address of the token. Therefore why didn’t we write the following to print out the token;
cout‹‹(*ptr);
String tokenizers
*ptr wil be print only T,
whereas ptr wil print the complete string till null