const int *p;
上面这条语句中,const修饰的是p指向的内存的值不能被修改,但是p本身是可以修改的
int *const p;
上面这条语句中,const修饰的是p本身是常量,不能被修改,但是p指向的内存是可以被修改的
下面给出几种错误的类型转换
const int *p ==> int *q;
int **p ==> const int **q;
const int **p ==> int **q;
int *p ==> const int *&q;
const int *p ==> int *&q;