#include <stdio.h>
void main()
{
int a[3][2]={1,2,3,4,5,6};
printf("&a[1][0] = %p\n",&a[1][0]);
printf("a[1] = %p\n",a[1]);
printf("a+1 = %p\n",a+1);
printf("___________________________________\n");
printf("a[1][0] = %d\n",a[1][0]);
printf("*a[1] = %d\n",*a[1]);
printf("*(a+1) = %p\n",*(a+1));
printf("**(a+1) = %d\n",**(a+1));
printf("___________________________________\n");
}
运行结果如下:
a+1 ==a[1]==&a[1][0]
*(a+1)不应该是等同于*a[1]==a[1][0]==3吗?
为什么*(a+1)==a+1 ?
|
|