int i = 2 * 3 + 4 * 5;
Value of i:

Options
- 26
- 22
- 46
- 50
- 70


CORRECT ANSWER : 26

Discussion Board
Value of i

Answer : 26

The order of operands for solving mathematical expressions is
* , / , + , -

So considering this sequence the above expression is solved as :

i = 2 * 3 + 4 * 5
----- -----

So, the computer will first solve the underlined expression
i.e

i = 6 + 20

Therefore,
i = 26

Jayesh Sonar 02-24-2015 03:43 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement