一 ()>[ ]>*.上面三个运算符的优先级,在判断指针时很有用。例如:
int* a[10] ; //指针数组
int (*a)[10]; //数组指针
int(*a)(int); //函数指针
int(*a[10])(int); //函数指针数组
int* a, **a; //指针和指向指针的指针
char str[]; //字符串数组
char* pStr, **ppStr; //字符指针和指向字符串的指针。
二
主要参考《程序员求职成功路--技术·求职技巧与软实力培养》第一章