Can you explain line 17 output at 02:53 in Strings 03 - Tokenization using 'strtok()'?
your are taking about line no 17??
cout<<ptr<<endl;
this is just print the character array
what is the doubt in it??
Why it is printing string not address?
in case of character array
cout will print the array not address
this is the functionality of cout
and cout will print the character array till it get ‘\0’ only
i think you have to revise the character array and pointers
1 Like
