Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int x=4, y=0; y=(++x)+(++x); printf("%d\n%d",x,y);
在这个程序y中应该是 11 并且x应该是 6,但是我的 C 程序打印y=12,x=6并且我的 Java 程序打印y=11, x=6. 我很困惑,想知道为什么 C 程序会打印 y=12?
y
x
y=12,x=6
y=11, x=6