In the first program, the character pointer p points to the string "a miss". In terms of memory address, the pointer P points to the first character of the string "a miss". *p stands for the character a pointed by the pointer p, so cout outputs a.
In C++, the standard library you use
Of course, for the integer variable int, cout can output the address you want.