Computer Science - Object Oriented Programming Using C++ - Discussion


Which of the following tells C++ to display numbers with two decimal places?

[A]. setdecimal(2)
[B]. setiosflags(2)
[C]. setiosflags(2.00)
[D]. setprecision(2)

Answer: Option D


No answer description available for this question.

Manasa said: (Aug 20, 2022)  
Please give a description of the answer.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.