adplus-dvertising
frame-decoration

Question

Which of the following tells C++ to display numbers in fixed notation?

a.

setiosflags(fixed)

b.

setiosflags(fixed: :is)

c.

setiosflags(ios, fixed)

d.

setiosflags(ios::fixed)

Answer: (d).setiosflags(ios::fixed)

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 in fixed notation?

Similar Questions

Discover Related MCQs

Q. In C++, the address operator is the following symbol _____

Q. You typically initialize Short Integer, Integer, and Long Integer variables to

Q. Assume that a variable will need to store only integers in the range of 1 through 20000. The most efficient data type for the variable is _____

Q. Which of the following is true ?

Q. When a break statement is used in a loop, the control skips the rest of the statements in the loop after it and jumps

Q. 3 is a _____ constant

Q. _____ variables remain in memory until the statement block ends

Q. Procedural cohesion is similar to sequential cohesion, except that with procedural cohesion _____

Q. The extraction operator >> is a(n)

Q. Assuming the following three operators appear in an expression (without parentheses), which of the operators will be performed first?

Q. The code that you enter into a C++ program is called _____

Q. Which of the following instructions tells C++ to merge the source code from the iostream.h file into the current file?

Q. The statement double total = 0.0; performs _____

Q. The general principle underlying object-oriented error handling is that a called function should __________

Q. Which is true ?

Q. Software that can be used in applications other than the one for which it was originally written is called

Q. When the compiler cannot differentiate between two overloaded constructors, they are called______

Q. The purpose of a conditional operator is to

Q. Which of the following, if any, are valid names for variables?

Q. Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A.)