Which of the following statements doubles the value stored in answer?
A) answer += 2;
B) answer *= 2;
C) answer = answer * 2;
D) All three of the above
E) Both B and C, but not A
Correct Answer:
Verified
Q1: The _ operator always follows the cin
Q2: _ can be used to override the
Q3: The following pair of C++ statements is
Q4: In any program that uses the cin
Q5: The cin object can be used to
Q7: When the final value of an expression
Q8: _ causes a program to wait until
Q9: The only difference between C-strings and string
Q10: The following two statements will assign the
Q11: Which of the following statements will assign
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents