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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: When you want to process only partial
Q18: In the statement cin >> x;, x
Q20: C++ has a special name for the
Q24: In an output statement, each occurrence of
Q28: You can disable the manipulator left by
Q29: Suppose that ch1,ch2,and ch3 are variables of
Q30: What is the output of the following
Q32: Suppose that alpha is an int variable
Q34: The stream function _ lets you put
Q36: Suppose that x is an int variable,y