adplus-dvertising
frame-decoration

Question

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

a.

setiosflags(0)

b.

setiosflags(zero)

c.

setprecision(0)

d.

setprecision(zero)

Answer: (c).setprecision(0)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following tells C++ to display numbers with zero decimal places?

Similar Questions

Discover Related MCQs

Q. Code that has already been tested is said to be _____

Q. The most efficient data type for a variable that the number 20000 is the _____ data type

Q. The number 5.5e3 is a _____ constant

Q. Simple routines that programmers use as place holders while a system is being tested are called _____

Q. The two operators && an || are

Q. The arguments that determine the state of the cout object are called _____

Q. Static variables are sometimes called

Q. The variables declared in a statement block or listed in a function header's parameterlist are considered _____ variables

Q. An expression

Q. In the C language, the character type of constant is delimited by using

Q. The number 125.35 is a _____

Q. Which of the following is true?

Q. The statement double val[15]={44.123456};

Q. Which of the following C++ expressions will find the square root of the number 16?

Q. The statement i*=3 is equivalent to

Q. The complement operator is represented by the symbol

Q. One of the relational operators in the C language is

Q. The rules to any programming language are its _______

Q. Which of the following backslash codes used for bell?

Q. One of the logical operators in the C language is represented by the symbol