What will be output by the following statements?


double x = .0012345;
cout << fixed << x << endl;
cout << scientific << x << endl;

a. 1.234500e-003
0.001235
b. 1.23450e-003
0.00123450
c. .001235
1.234500e-003
d. 0.00123450
1.23450e-003

c. .001235
1.234500e-003

Computer Science & Information Technology

You might also like to view...

Which statement about vacuum tubes is NOT accurate?

A) They are similar to light bulbs. B) They seldom need to be replaced. C) They generate a lot of heat when operating. D) They were used in first-generation computers.

Computer Science & Information Technology

A logical test is used to evaluate if a value or expression is TRUE or FALSE

Indicate whether the statement is true or false.

Computer Science & Information Technology