我已经被这几个数搞晕为嘛啊
int a=3,b=4,c=5;
int *pa[3]={&a,&b,&c};
//打印的是指针数组的第一个元素得值
printf(" &a = %p\n",&a);
printf(" pa[0] = %p\n",pa[0]);
//打印指针数组的首地址
printf(" pa = %p\n",pa);
printf(" &pa[0]= %p\n",&pa[0]);
//访问a的值 a = 3
printf(" *(&a) = %d\n",*(&a));
printf(" *(pa[0]) = %d\n",*(pa[0]));
//使用数组名来访问 a的值
//*pa == pa[0] (a的地址)
//**pa
printf("%d\n",**pa);
&a = 0x7fff5fbff7bc
pa[0] = 0x7fff5fbff7bc
pa = 0x7fff5fbff7f0
&pa[0]= 0x7fff5fbff7f0
*(&a) = 3
*(pa[0]) = 3
|
|