If you want to examine an input value without actually removing it from the input stream, you can apply a member function of cin to the variable ch, which you are to assume is a char type variable. Which of these does this task?

a. cin.get(ch);
b. cin.put(ch);
c. cin.peek(ch);
d. cin.putback(ch);

c)
Explanation: cin.peek(ch) returns the next character from the input stream without removing it from the input stream.

Computer Science & Information Technology

You might also like to view...

Use the ________ key to select nonadjacent cells

A) Shift B) Enter C) Ctrl D) Tab

Computer Science & Information Technology

The Office 365 calendar is just an electronic calendar page that you can use to find a specific date

Indicate whether the statement is true or false

Computer Science & Information Technology