Suppose that ch1 and ch2 are char variables, and alpha is an int variable. The input is:
?
A 18
?
What are the values after the following statement executes?
?
cin.get(ch1);
cin.get(ch2);
cin >> alpha;
?

A. ch1 = 'A', ch2 = ' ', alpha = 18
B. ch1 = 'A', ch2 = '1', alpha = 8
C. ch1 = 'A', ch2 = ' ', alpha = 1
D. ch1 = 'A', ch2 = '\n', alpha = 1


Answer: A

Computer Science & Information Technology

You might also like to view...

A(n) ________ is the top-most area of a document that includes information such as the document title and author name

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which rule will set a CSS declaration?

a. @media b. @sizer c. @adjust d. @displays

Computer Science & Information Technology

What is a logo and what does it do for a brand or entity?

What will be an ideal response?

Computer Science & Information Technology

You can eliminate the problems that occur as a result of implicit type conversions by entering theOption Explicit Onstatement in the General Declarations section of the Code Editor window.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology