有几条表达式不太懂
我可以理解zippo (一个大小为2int的元素的地址)
zippo+2 (第三个大小为2个int的元素的地址)
理解不了下面这三句,有什么比较好的理解方法吗?
*(zippo+2)
*(zippo+2)+1
*(*(zippo+2)+1)
程序代码:
#include<stdio.h> int main(viod) { int zippo[4][2]={{2,4},{6,8},{1,3},{5,7}}; printf("zippo=%p, zippo+1=%p\n", zippo, zippo+1); printf("*zippo[0]=%p, zippo[0]+1=%p\n", zippo[0], zippo[0]+1); printf("*zippo=%p, *zippo+1=%p\n", *zippo, *zippo+1); printf("zippo[0][0]=%d\n",zippo[0][0]); printf("*zippo[0]=%d\n",*zippo[0]); printf("**zippo=%d\n",**zippo); printf("zippo[2][1]=%d\n",zippo[2][1]); printf("*(*(zippo+2)+1)=%d\n",*(*(zippo)+1)); return 0; }
[此贴子已经被作者于2017-11-18 17:01编辑过]