when cout<<ptr is done why is the string or character array pointed to by ptr printed instead of the address??
Why is address printed if ptr is a pointer?
@mehulbhandari358 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.