How many times will the following loop display "Hello world!"?

for (int i = 0; i < 20; i++)
cout << "Hello world!" << endl;

a. 20
b. 19
c. 21
d. an infinite number of times

a. 20

Computer Science & Information Technology

You might also like to view...

A primary key in one table cannot be used as a foreign key in a different table

Indicate whether the statement is true or false

Computer Science & Information Technology

Explain how the serial connection to a WAN service provider differs from the way the serial connections are set up for the curriculum labs

What will be an ideal response?

Computer Science & Information Technology