If you want to examine an input value without actually removing it from the inpu
ID: 3696225 • Letter: I
Question
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 the following does this task ?A cin.get(ch); B cin.put(ch); C cin.peek(ch); D cin.putback(ch); 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 the following does this task ?
A cin.get(ch); B cin.put(ch); C cin.peek(ch); D cin.putback(ch);
Explanation / Answer
c) cin.peek(ch);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.