const int* p1; int const* p2; int* const p3; p1、p2是一样的,const在 * 之前,cons修饰的是指针指向的对象; p3,const在 * 之后,cons修饰的是指针本身。