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

d. 1.23457
1.235
1.235

Computer Science & Information Technology

You might also like to view...

The tables of information in a relational database are linked or joined to one another by a ________ field.

a. redundant b. relationship c. common d. data

Computer Science & Information Technology

Properties are characteristics that determine the appearance, structure, and ________ of an object

Fill in the blank(s) with correct word

Computer Science & Information Technology