Solved

What Will Be Output by the Following Statements

Question 10

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

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions