why cout<<*ptr is not used for printing token
and why is cout<<ptr; is giving the token and not the address of that token
why cout<<*ptr is not used for printing token
and why is cout<<ptr; is giving the token and not the address of that token
this is because for character array’s address cout print whole character array till ‘\0’
Sorry,but i didn’t get it.Could you please explain it again.
this is functionality of cout
if cout get an address of character array then it print the whole string starting from that address till he get ‘\0’
try to run this
i hope this help