Multiple Choice
Which of the following expressions will evaluate to 2.5?
A) static_cast<double>(5 / 2)
B) 5 / static_cast<double>(2)
C) static_cast<double>(5) / 2
D) All three of the above
E) Both B and C, but not A
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q30: When converting some algebraic expressions to C++,
Q32: The only difference between C-strings and string
Q33: The following two statements will assign the
Q34: The stream manipulator can be used to
Q35: can be used to override the rules
Q36: In C++, a value can be raised
Q38: Program code that can be evaluated to
Q39: Which of the following statements doubles the
Q39: The _operator always follows the cin object,
Q40: When the final value of an expression