difference between const char* p and char const* p

const char *p - This is a pointer to a constant character. You cannot change the value pointed by p, but you can change the pointer p itself. const * char p - This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by p.

Comments