Solved

Suppose That X Is an Int Variable, Y Is a Double

Question 22

Multiple Choice

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:

verifed

Verified

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

Related Questions