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

Verified
Correct Answer:
Verified
Related Questions
Q23: The _ object causes data to be
Q24: The following two statements will assign the
Q25: The following statement number = rand() %
Q26: _ causes a program to wait until
Q27: The following pair of C++ statements will
Q29: The following two expressions evaluate to the
Q30: When an arithmetic expression contains two or
Q31: When converting some algebraic expressions to C++,
Q32: The only difference between C-strings and string
Q33: Which of the following statements about named