char str[]=“hello how are you?”;
char *ptr=strtok(str," “);
cout<< ptr<<”\n";
ptr=strtok(str," ");
cout<< ptr<<"\n";
ptr=strtok(NULL," ");
cout<< ptr<<"\n";
Output:
hello
hello
Doubt: why does how does not get printed in this case?