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?
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
Q5: Suppose that x and y are int
Q8: The number of input data extracted by
Q11: In the statement cin >> x;, x
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
Q21: Suppose that x = 25.67, y =
Q27: In C++, the dot is an operator
Q39: The function _ returns the next character
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