Suppose that ch1 and ch2 are char variables, and alpha is an int variable.The input is: A 18
What are the values after the following statement executes?
Cin) get(ch1) ;
Cin) get(ch2) ;
Cin >> alpha;
A) ch1 = 'A', ch2 = ' ', alpha = 18
B) ch1 = 'A', ch2 = '1', alpha = 8
C) ch1 = 'A', ch2 = ' ', alpha = 1
D) ch1 = 'A', ch2 = '\n', alpha = 1
Correct Answer:
Verified
Q12: Suppose that x is an int variable,
Q13: When reading data into a char variable,
Q14: Suppose that x is an int variable,
Q15: The extraction operator >> skips only all
Q16: In an output statement, each occurrence of
Q18: It is a good idea to redefine
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
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