What is the difference between the following:
const char *c = 0; //Here c is a pointer to a constant character
typedef char *pstring;
const pstring cstr = 0 //cstr is a constant pointer to a character
Why is there a difference between the two statements, while they look just the same.In C++ Primer it is mentioned that the base type of first statement is const char and * is the part of the declarator. While for the last statement,the base type is const pstring. I am not getting the difference between the two.