我不明白为什么最后 a 等于 1 而 b 等于 0。在我看来,它们应该是一样的。提前致谢。
#include "stdio.h" int main() { int a=0; int b=0; a++; printf("a=%d,b=%d",a,b++); return 0; }
c printf operators post-increment
c ×1
operators ×1
post-increment ×1
printf ×1