100.0120.F
int a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h =
8, r1, r2, r3, r4, r7;
float v = 0.5, x = 1.0,
y = 2.0, z = 3.0, r5,
r6;
r1 = a + e/(e - b);
printf("Output A =
%d\n",r1);
r2 = -b - (c
+ d) % b;
printf("Output B =
%d\n",r1);
r3 = a-- * b - ++c;
printf("Output C =
%d\n",r3);
r4 = c - a + e/b;
printf("Output D =
%d\n",r4);
r5 = z/y + (++g % d);
printf("Output E =
%f\n",r5);
r6 = z - (float) b * z/y;
printf("Output F =
%d\n",r6);
WHY??
z - (float) b * z/y
= 3.0 – (float)
2 * 3.0 / 2.0
= 3.0 – 2.0 *
3.0 / 2.0
= 3.0 – 6.0 /
2.0
= 3.0 – 3.0
= 0.0