How many times will the following loop display "Looping!"?

for (int i = 20; i > 0; i--)
cout << "Looping!" << 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...

You would use the ________ function to return the position of a value in a list

A) IF B) INDEX C) AND D) MATCH

Computer Science & Information Technology

Imagine that you saw a Usenet posting with something particularly funny in it and saved the posting to a file. How would you incorporate this file into your own buffer? What if you wanted to use only a couple of paragraphs from the posting? How would you add > to the beginning of each included line?

What will be an ideal response?

Computer Science & Information Technology