#include <stdio.h>
int main()
{
int a = 3, b = 4;
printf("result = %d\n",a+b%a-b/a+a*b-a++);
printf("a = %d\n",a);
return 0;
}
结果:
result = 12a = 4
a的值为什么是4呢?怎么算
4/3=1?
a+b%a-b/a+a*b-a++等于3+4%3-4/3+3*4-3
然后a的值自增1.