Vidyalelo
Computer Science · Q397

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 397

Q397

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board