这个有一点绕,有点分不清修饰的指针的地址还是指向的内容
cpp
int const *a; //指针指向的内容不可以变
const int *a; //指针指向的内容不可以变
int *const a; //指针变量不可以变
const int * const a; //指针指向的内容不可以变,指针变量不可以变
const 还可以提高编译器的效率
