Question: Which statements are true? Select the three correct answers. (a) The expression (1 + 2 + 3) evaluates to the string 33. (b) The expression
Which statements are true?
Select the three correct answers.
(a) The expression (1 + 2 + "3") evaluates to the string "33".
(b) The expression ("1" + 2 + 3) evaluates to the string "15".
(c) The expression (4 + 1.0f) evaluates to the float value 5.0f.
(d) The expression (10/9) evaluates to the int value 1.
(e) The expression ('a' + 1) evaluates to the char value 'b'.
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
a c and d The left associativity of the operator makes the evaluation of 1 2 3 pr... View full answer
Get step-by-step solutions from verified subject matter experts
