Suppose that x is an int variable, y is a double variable, and ch is a char variable.The input is: 15A 73.2
Choose the values after the following statement executes:
Cin >> x >> ch >> y;
A) x = 15, ch = 'A', y = 73.2
B) x = 15, ch = 'A', y = 73.0
C) x = 15, ch = 'a', y = 73.0
D) This statement results in an error because there is no space between 15 and A.
Correct Answer:
Verified
Q9: Suppose that x is an int variable,
Q10: Suppose that x is an int variable
Q11: In the statement cin >> x;, x
Q12: Suppose that x is an int variable,
Q13: When reading data into a char variable,
Q15: The extraction operator >> skips only all
Q16: In an output statement, each occurrence of
Q17: Suppose that ch1 and ch2 are char
Q18: It is a good idea to redefine
Q19: Suppose that x and y are int
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