Solved

Suppose That Ch1 and Ch2 Are Char Variables and the Input

Question 24

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents