Computer Science, asked by reallyvk, 1 month ago

What is stored in result variable of type int for the following expression:

2 -10*3 +100/11

Answers

Answered by MemoryHierarchy
0

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

Similar questions