
Suppose that x is an int variable and y is a double variable and the input is: 10 20.7
Choose the values after the following statement executes: cin >> x >> y;.
A) x = 10, y = 20
B) x = 10, y = 20.0
C) x = 10, y = 20.7
D) x = 10, y = 21.0
Correct Answer:
Verified
Q2: You can use the function getline to
Q4: Suppose that x and y are int
Q4: Suppose that ch1,ch2,and ch3 are variables of
Q4: If input failure occurs in a C++
Q5: Suppose that x is an int variable,y
Q5: Suppose that x and y are int
Q7: Suppose that x is an int variable,y
Q14: Suppose that ch1 and ch2 are char
Q15: The extraction operator >> skips only all
Q16: In an output statement, each occurrence of
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