指针常量:(int *const p=&a) const 修饰p,p所指向的地址不能改变,但a的值可以改变。 常量指针:(int const* p=&a) const修饰指针,指针不能变,即a的值不能变,地址可以变。