1.

What is stored in result variable of type int for the following expression:2 -10*3 +100/11

Answer»

Answer:

-19

Explanation:

INT DOESNT TAKE float values and consideres only the INTEGER part of a number.

Therefore,

2-10*3+100/11     (100/11 is 9.09091, which is considered 9)

=2-30+9

=11-30

=-19



Discussion

No Comment Found