Question

Q1: 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

Answer

This answer is hidden. It contains 10 characters.