If a,b,c are int variables and a=2, b=4,c=3,d=5, what is the value of the expression

A/b/c*d-a+c*d/b-c. Justify your answer

Questions by Swati Goel

Showing Answers 1 - 1 of 1 Answers

Noa

  • Dec 14th, 2012
 

The answer is -2.
Expressions are calculated from left to right and so we have:
a/b=1, (a/b)/c=0 (rounding down).
c*d/b is also calculated the same way to give 3.
So -2+3-3 = -2

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions