Chapter 3 Quiz Starting Out With C++ 033

Which of the following statements will display the following result if x is 123.4?

123.400

a. cout << setprecision(6) << showpoint << x << endl;
b. cout << setw(6) << x << endl;
c. cout << showpoint << x << endl;
d. cout << showpoint(3) << x << endl;

No comments:

Post a Comment