我是看的视频里面的.你们看看哪里有错吗?
#include <stdio.h>
int main()
{
int a = 10;
int b;
//b = a++;
//b = ++a;
b = (a++) + (++a);
printf("b=%d\n",b);
return 0;
}
报的错是:
02运算符.c:9:11: warning: multiple unsequenced modifications to 'a'
[-Wunsequenced]
b = (a++) + (++a);
^ ~~
什么情况呢?应该没错啊.. |
|