const修饰规则
const int *p1 可看作是const修饰的类型是int,修饰的内容是*p1,即*p1不允许改变。
int const *p2 可以看作const修饰的类型是int,修饰的内容是*p2,即*p2不允许改变。
int *const p3 可以看作const修饰的类型是int *,修饰的内容是p3,即p3不允许改变
const修饰规则
const int *p1 可看作是const修饰的类型是int,修饰的内容是*p1,即*p1不允许改变。
int const *p2 可以看作const修饰的类型是int,修饰的内容是*p2,即*p2不允许改变。
int *const p3 可以看作const修饰的类型是int *,修饰的内容是p3,即p3不允许改变