If the input stream is
abcde
what will be the output of the following code?
char ch;
for (int i = 0; i < 4; i++){
cin.get(ch );
if (ch != ‘b’)
cout << ch;
}
a) abcd
b) abcde
c) acde
d) acd
d) acd
Computer Science & Information Technology
You might also like to view...
The ________ section of your Profile page is the place you summarize your job skills and employment history
Fill in the blank(s) with correct word
Computer Science & Information Technology
Which of the following would NOT be considered part of document or paragraph layout?
A) Font style B) Indents C) Line spacing D) Margins
Computer Science & Information Technology