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...

Roger, an entrepreneur of a software industry, decides to use a system that will run the programs needed to meet the different needs of a wide variety of users during business hours. This system also performs large processing tasks, such as payroll and billing. Which of the following systems should Roger use?

A. ?Mainframe computers B. ?Optical mark recognition systems C. ?Remote desktop systems D. ?Stand-alone computers

Computer Science & Information Technology

The y-axis on a chart is also known as the ________ axis

Fill in the blank(s) with correct word

Computer Science & Information Technology

Placing a backslash in front of an apostrophe tells the PHP scripting engine that the apostrophe is to be treated as a regular keyboard character.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The combination of the keys ____________________on the keyboard will select all items in a report when viewing a report in Report view.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology