我的程序如下:
#include<stdio.h>
main()
{
int x=30,*y,*z;
y=&x;
z=y;
*y++=*z++; //what does this mean?
x++;
printf("%d %d",y,z);
return 0;
}
这条语句的含义是什么:*y++=*z++
?
最佳答案
相当于:
*y = *z;
y++;
z++;
I cant understand the output of this program
你在打印指针,没什么好理解的。
- 在打印指针时,您应该使用
%p
而不是%d
- 当你增加这些指针时,你正在超越已知的宇宙
关于c - 我无法理解这个程序的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11965178/