i think that the data type of ptr should be string as it stores the address of a string type variable.Also how come ptr which actually storers the address of individual word print the word without using* unlike normal pointers of other data types
why a char pointer "ptr" is used in string tokenizer to store individual words
Hey Sumit, try not to post your same doubt multiple times, I have answered your same doubt you can refer that.