Which of the below pointer declarations are same?
i. char const *p;
ii. const char *p
iii. char * const p
all declarations are different.
i & ii are same
i & iii are same
all three are same.
char const *p; // p is pointer to a constant character
const char *p; // p is a pointer to a character constant
so both are same.
Back To Top