Here's the code:
#include <stdio.h>
#include <stdio.h>
#define VAL1(a,b) a*b
#define VAL2(a,b) a/b
#define VAL3(a,b) ++a%b
int main()
{
int a = 1;
int b = 2;
int c = 3;
int d = 3;
int e = 5;
int result = VAL2(a,d)/VAL1(e,b)+VAL3(c,d); // result = 1
//int result = a/d/e*b+++c%d; // result = 0
printf("%d
", result);
return 0;
}
Why aren't the results of two statements the same?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…