不好意思前面省略
int i;
int *ptr;
int array[3][4] = {{10,11,12,13},{4,5,6,7},{18,19,20,21}};
ptr = (int*)array;
printf("%d\n",array[1][2]);
ptr++;
printf("%d\n",*ptr);
printf("%d\n%d\n",(*(array+1))[1],*((array+1)[1]));
ptr++;
printf("%d\n",*ptr);
最後會印出
5
11
5
18
12
想請問
printf("%d\n%d\n",(*(array+1))[1],*((array+1)[1]));
這邊怎麼會印出5和18的....
看不懂= =
跪求高人幫忙
謝謝!!!