Solved

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

Question 14

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents