100.0120.I

 

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 = %f\n",r6);

r7 = (int) (x + y) - f;

printf("Output G = %d\n",r7);

if ((b < d) && (h % 2 == 1))

      printf("Output H = TRUE\n");  

else 

      printf("Output H = FALSE\n");  

if ((((int) (z/x)) == 3) || ((float) h != 8.0))     

      printf("Output I = TRUE\n");  

else

      printf("Output I = FALSE\n");

 

 

WHY??

 

   ((((int) (z/x)) == 3) || ((float) h != 8.0))

= ((((int) (3.0/1.0)) == 3) || ((float) 8 != 8.0))

= ((((int) 3.0) == 3) || (8.0 != 8.0))

= ((3 == 3) || (FALSE)

= (TRUE) || (FALSE)

= TRUE