Multiple Choice
Suppose that ch1 and ch2 are char variables and the input is:WXYZ What is the value of ch2 after the following statements execute?
Cin >> ch1;
Ch2 = cin.peek() ;
Cin >> ch2;
A) W
B) X
C) Y
D) Z
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q8: Suppose that x and y are int
Q9: What is the output of the following
Q10: Suppose that ch1, ch2, and ch3 are
Q11: The extraction operator >> skips only all
Q12: Suppose that x = 25.67, y =
Q14: You can use the function getline to
Q15: If input failure occurs in a C++
Q16: C++ provides a header file called _,
Q17: In C++, the dot is an operator
Q18: In the statement cin >> x;, x