Solved

What Will Be Output by the Following Statements? Double X{1

Question 22

Multiple Choice

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:

verifed

Verified

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

Related Questions