const修饰指针 const int* p1; //const修饰的是*p1,*p1是常量,不能给常量赋值,表达式*p1=2错误 int *const p2 = &a; //const修饰p2,p是常量,表达式p=&b错误 指针指向数组