const 指常量,是一个常量修饰符 对于 一、const int *p; 二、int const *p; 这两者的*p都作为一个整体在const右边,所以*p,也就是p指向的内容不可修改 对于 int *const p; const右边是p,p为一个地址,所以p的值,也就是p指针的指向不可被修改