#include <stdio.h>
int main()
{
int arr[3][4] = {{11,22,33,44},{51,52,53,54},{61,62,63,64}};
printf("arr is father address: %p,excursion one is %p\n",arr,arr+1);
printf("arr[0] is child address: %p,excursion one is %p\n",arr[0],arr[0]+1);
printf("arr[0] is child address: %p,excursion one is %p\n",*(arr+0),*(arr0)+1);
}
#include <stdio.h>
int main()
{
int arr[3][4] = {{11,22,33,44},{51,52,53,54},{61,62,63,64}};
int i;
int j;
for(i=0;i<3;i++){
for(j=0;j<4;j++){
printf("add:0x%p,data:%d ",&arr[i][j],arr[i][j]);
printf("add:0x%p,data:%d\n",arr[i]+j,*(arr[i]+j));
}
printf("\n");
}
}
#include <stdio.h>
int main()
{
int arr[3][4] = {{11,22,33,44},{51,52,53,54},{61,62,63,64}};
int i;
int j;
for(i=0;i<3;i++){
for(j=0;j<4;j++){
printf("add:0x%p,data:%d \n",&arr[i][j],arr[i][j]);
printf("add:0x%p,data:%d \n",arr[i]+j,*(arr[i]+j));
printf("add:0x%p,data:%d \n",*(arr+i)+j,*(*(arr+i)+j));
printf("===================================\n");
}
}
}