I'm curious with this problem
int p[] = {1,2,3};
cout << p;
it will output address of the first element(1)
but.....
char p[] = {'a','b'};
cout << p;
it will not output the address of the first element but it will output the entire array "ab".
why does it happened ?