ProAnswers.org

Differentiate between a constant pointer and pointer to a constant?

const char *p; //pointer to a const character.

char const *p; //pointer to a const character.

char * const p; //const pointer to a char variable.

const char * const p; // const pointer to a const character.