指针和const
关于指针和const请参考这篇:http://blog.csdn.net/uncle_gy/article/details/78046575
其他类型的指针
指针 | 含义 |
---|---|
int*a | 指向int的指针 |
int**a | 指向指针的指针 |
int*a[10] | 指针的数组,一个长度为10,元素为整型指针的数组 |
int(*a)[10] | 指向数组的指针,一个指针,指向为一个长度为10的int型数组 |
int(*a)(double) | 指向函数的指针,指向的函数的参数为 double,返回值为int |
int(*a[10])(double) | 指向函数的指针数组,这个数组的长度为10,而且指向的函数参数为double,返回值为int |