If you have a double value in your program and just set the precision for the cout statement to 4, what do you see? What do you see if you set the precision and the ios::fixed flag?
What will be an ideal response?
If you just set the precision to 4, C++ will write your double value showing 4 digits. The value 23.56787373 would be shown as 23.57 . If you set the fixed flag, you’d see 4 digits of decimal precision, i.e., 23.5679.
You might also like to view...
A kilobyte contains approximately one ________ bytes of data
A) hundred B) thousand C) million D) billion
The logical operator ________ allows for a single condition to be met for the record to be included in the results
A) AND B) BOTH C) OR D) SELECT
____________________ describes a language's correct word usage, spelling, and punctuation.
Fill in the blank(s) with the appropriate word(s).
To run Disk Cleanup, click the Start button, click All Programs, click the ____ folder in the left pane, click the System Tools folder, and then click Disk Cleanup.
A. Options B. Accessories C. Cleanup D. Tools