What is the value of the expression (1 / 2 + 3 / 2 + 0.1)?
Select the one correct answer.
(b)
The / operator has higher precedence than the + operator.
This means that the expression is evaluated as ((1/2) + (3/2) + 0.1).
The associativity of the binary operators is from left to right, giving (((1/2) + (3/2)) + 0.1).
Integer division results in ((0 + 1) + 0.1) which evaluates to 1.1.