C Programming :: Operators Expressions

6. Predict the output of following "C" code:

main()
{
int x,a=10;
x=9*5+ 7/3 -6+a;
printf("%d",x);
}

Answer: Option A

Explanation :

45+2-6+10 = 51
7/3 =2 int division

Asked In :: TCS

Post Your Answer Here:     

No Discussion on this question yet!