為什么x的值最后還是變化了,原題目上給的注釋a最后都沒變
#include <stdio.h>
int main()
{
? ? int x = 0;
? ? printf("x=%d\n",x++);
? ? printf("x=%d\n",++x);
? ? printf("x=%d\n",x);
? ? return 0;
}? ?x=0
????x=2
????x=2
????
#include <stdio.h>
int main()
{
? ? int x = 0;
? ? printf("x=%d\n",x++);
? ? printf("x=%d\n",++x);
? ? printf("x=%d\n",x);
? ? return 0;
}? ?x=0
????x=2
????x=2
????
2019-08-14
舉報(bào)
2019-08-14
好的呢
2019-08-14
是我弄錯(cuò)了,我已經(jīng)搞明白了