I fail to understand why this program prints -8
since x is intger ..I expect it to print -9 here (leaving the fractional parts)Code:#include <stdio.h> int main(void) { int x=2; int y=3; int z=4; x*=-2*(y+z)/3; printf("result %d",x); return 0; } my understanding : x*=-2*(y+z)/3; => x=x*{-2*(y+z)/3} =>x=2*{-2*(3+4)/3} =>x=2*{-2*7/3} =>x=2*{-2*2.33333....} =>x=2*(-4.66666666667) =>x=-9.33333333334
But it prints -8
How ?