Solved

Suppose That Ch1 and Ch2 Are Char Variables, and Alpha

Question 23

Multiple Choice

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

Correct Answer:

verifed

Verified

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

Related Questions