Doubt in pointer

In the given code from video, ptr is a pointer than how when we print ptr without dereferencing, it gives string.

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.