What will be output by the following statements? double x{1.23456789};
Cout << fixed;
Cout << setprecision(5) << x << endl;
Cout.precision(3) ;
Cout << x << endl;
Cout << x << endl;
A) 1.2346 1.23
1) 23
B) 1.23457 1.235
1) 23456789
C) 1.2346 1.23
1) 23456789
D) 1.23457 1.235
1) 235
Correct Answer:
Verified
Q4: Which C++ data type was designed to
Q5: Which of the following prints the address
Q6: Which of the following classes is deepest
Q7: Which of the following classes is a
Q8: Which of the following statements is not
Q10: The stream-extraction operator:
A) Does not normally accept
Q11: Which of the following is not true
Q12: Which of the following is an illegal
Q13: The putback member function returns to the
Q14: Select the correct statement regarding C++ I/O
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