Solved

Suppose That Alpha,beta,and Gamma Are Int Variables and the Input

Question 34

Multiple Choice
Suppose that alpha,beta,and gamma are int variables and the input is: 
100 110 120
200 210 220
300 310 320
What is the value of gamma after the following statements execute?
cin >> alpha;
cin.ignore(100,'\n');
cin >> beta;
cin.ignore(100,'\n');
cin >> gamma;
A) 100
B) 200
C) 300
D) 320

Suppose that alpha,beta,and gamma are int variables and the input is:
100 110 120
200 210 220
300 310 320
What is the value of gamma after the following statements execute?
cin >> alpha;
cin.ignore(100,'\n') ;
cin >> beta;
cin.ignore(100,'\n') ;
cin >> gamma;


A) 100
B) 200
C) 300
D) 320

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents