Suppose that x and y are int variables, ch is a char variable, and the input is:4 2 A 12Choose the values of x, y, and ch after the following statement executes:cin >> x >> ch >> y; 

A. x = 4, ch = 2, y = 12
B. x = 4, ch = A, y = 12
C. x = 4, ch = ' ', y = 2
D. This statement results in input failure


Answer: D

Computer Science & Information Technology

You might also like to view...

The y-axis on a chart is also known as the ________ axis

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which tool/command lets you fix imperfections in an image?

A. Color Range command B. Healing Brush tool C. Inverse command D. Magic Wand tool

Computer Science & Information Technology

A Java character is stored in __________.

a. one byte b. two bytes c. three bytes d. four bytes

Computer Science & Information Technology

Which of the following is not a data type that is supported as preference-setting values?

a. Float values b. Fixed values c. Long values d. Boolean values

Computer Science & Information Technology