
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
Q24: Suppose that ch1 and ch2 are char
Q29: In the C++ statement,
cin.get(u);
u must be a
Q29: C++ comes with a wealth of functions,
Q30: What is the output of the following
Q31: The stream function _ lets you put
Q33: The functions get,ignore,and so on are members
Q36: Suppose that ch1 and ch2 are char
Q38: What is the output of the following
Q39: The function _ returns the next character
Q39: Suppose that x = 1565.683,y = 85.78,and
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents