Solved

Suppose That Ch1 and Ch2 Are Char Variables,alpha Is an Int

Question 41

Multiple Choice

Suppose that ch1 and ch2 are char variables,alpha is an int variable,and 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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions