
Suppose that ch1,ch2,and ch3 are variables of the type char and the input is:
A B
C
What is the value of ch3 after the following statements execute?
cin.get(ch1) ;
cin.get(ch2) ;
cin.get(ch3) ;
A) 'A'
B) 'B'
C) 'C'
D) '\n'
Correct Answer:
Verified
Q8: The number of input data extracted by
Q11: In the statement cin >> x;, x
Q13: When reading data into a char variable,
Q18: It is a good idea to redefine
Q20: Suppose that x and y are int
Q23: Suppose that x = 55.68,y = 476.859,and
Q27: In C++, the dot is an operator
Q32: Manipulators without parameters are part of the
Q35: When you want to process only partial
Q38: _ is a parameterized stream manipulator.
A) endl
B)
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