The method ____ pushes character values back onto the input stream.
A. cin.ignore()
B. cin.put()
C. cin.putback()
D. cin.peek()
Answer: C
You might also like to view...
Write a declaration for an array of 20 objects of class counter.
Fill in the blank(s) with the appropriate word(s).
Which of the following is NOT a main component of the motherboard?
A) Cache memory B) CPU C) RAM D) DVD
Omitting the tested expression from a for loop results in ____.
A. a crashed program B. a print error C. a read error D. an infinite loop
Answer the following statements true (T) or false (F)
1. There is only one kind of parameter passing in C++, namely call-by-value. Explain. 2. The call-by-reference mechanism is specified in the function declaration and definition, using a $ between the type and the parameter. 3. The position of the ampersand in the function header is of no importance to the proper compiling and execution of code that uses call-by-reference parameters. 4. A call-by-value parameter may pass data only into a function. 5. A call-by-reference parameter may pass data only out of a function.