原文地址:http://blog.csdn.net/huluedeai/article/details/50724838
C++之父Bjarne在他的《The C++ Programming Language》里面给出过一个助记的方法:
把一个声明从右向左读。 遇到 * 读成 pointer to。估计C编译器也是按照这个方法来解析的。char ** p1;
// pointer to pointer to char
const char **p2;
// pointer to pointer to const char
char * const * p3;
// pointer to const pointer to char
const char * const * p4;
// pointer to const pointer to const char
char ** const p5;
// const pointer to pointer to char
const char ** const p6;
// const pointer to pointer to const char
char * const * const p7;
// const pointer to const pointer to char
const char * const * const p8;
// const pointer to const pointer to const char