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

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

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. By default, labels are visible only within the procedure in which they are declared. 2. The RET instruction pops the value pointed to by EBP off the stack into the instruction pointer.. 3. A nested procedure call occurs when a called procedure calls another procedure before the first procedure returns

Computer Science & Information Technology

ROM chips called ______ contain permanently written instructions, or information, such as start-up instructions.

A. SROM B. hard drives C. boot memory D. firmware

Computer Science & Information Technology