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
Q19: Suppose that x and y are int
Q20: Entering a char value into an int
Q21: Suppose that x = 25.67, y =
Q22: What is the output of the following
Q23: Suppose that x = 55.68, y =
Q25: In C++, the dot is an operator
Q26: C++ has a special name for the
Q27: In C++, the dot is an operator
Q28: Suppose that x = 1565.683, y =
Q29: C++ comes with a wealth of functions,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents