in this when we are
cout<<ptr<<endl;
it should give the adress but why we are getting tokens out of it.
String03-tokenization using 'strtok' function
This is because character arrays are treated different than int arrays. character arrays are basically strings, so this is a feature of c++ that cout << chArr will give you the contents of the string instead of the address of the first character.
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.