一般形式:
基类型 **变量名;
例如:char **p;
void main() { char *name[] = {"Follow me","Basic","Great Wall","FORTRAN","Computer design"}; char **p; int i; for(i=0;i<5;i++) { p = name + i; printf("%s\n",*p); } }
指针数组的元素也可以指向整型数据或实型数据。
void main() { int a[5] = {1,3,5,7,9}; int *num[5] = {&a[0],&a[1],&a[2],&a[3],&a[4]}; int **p,i; p = num; for(i=0;i<5;i++) { printf("%d ",**p); p++; } printf("\n"); }
C语言基础学习9:指向指针的指针,布布扣,bubuko.com
原文:http://www.cnblogs.com/iambitiousman/p/3856251.html