(本文参考了http://blog.csdn.net/yingxunren/article/details/3968800)
Bjarne在《The C++ Programming Language》给出过一个助记的方法:
把一个声明从右向左读( * 读成 pointer to )
const在*后面,表示指针不变:
char * const cp; //cp is a const pointer to char
const在*前,表示值不变:
const char * p; //p is a pointer to const char;
char const * p; //同上