const int *p;
int const *p;
指向int型常量的指針
不可以改變內容
可以改變指向變量
int * const p;
指向int型的常量指針;
可以改變內容
不可以修改指向變量
const int * const p;
int const * const p;
指向int型常量的常量指針;
都不可以改變
const int *p;
int const *p;
指向int型常量的指針
不可以改變內容
可以改變指向變量
int * const p;
指向int型的常量指針;
可以改變內容
不可以修改指向變量
const int * const p;
int const * const p;
指向int型常量的常量指針;
都不可以改變