Hi,
I am new to pointer world. I have started programming in c++ and have basic knowledge in c.

Code:
    char y[]="helloo";
    char *p=y;
    cout<< p[1];
This prints 'e'

if I print:

Code:
 cout<< p
I get hello. I am unable to underatnd why. It should actually print address of y array!