Solved

What Will Be Output by the Following Statements

Question 2

Multiple Choice

What will be output by the following statements?
Double x = 1.23456789;
Cout << fixed;
Cout << setprecision5) << x << endl;
Cout.precision3) ;
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:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents