Suppose that x is an int variable and y is a double variable. 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
Answer: C
Computer Science & Information Technology
You might also like to view...
Which category of primitive functions has a function that returns an object’s height?
a. Point of view b. Proximity c. Size d. Spatial relation e. None of these
Computer Science & Information Technology
What is the value of x after execution of the following statement?
float x = 9 / 2;
Computer Science & Information Technology