【发布时间】:2020-12-13 09:56:14
【问题描述】:
问题->
#include<stdio.h>
int main()
{
int a,*b,**c,***d;
int x;
a=&x;
b=&a;
c=&b;
d=&c;
printf("%d\t%d\t%d\t%d",a,b,c,d);
a++;
b++;
c++;
d++;
printf("\n%d\t%d\t%d\t%d",a,b,c,d);
return 0;
}
输出
-760636132 -760636128 -760636120 -760636112
-760636128 -760636120 -760636112 -760636104
为什么在第二个指针之后所有的指针都递增 8?
【问题讨论】:
-
评论不用于扩展讨论;这个对话是moved to chat。
标签: c pointers memory memory-address