What is wrong with the following for loop?

for(int i=0;i<10;i--)
{
cout << "Hello\n";
}
a. can not use a for-loop for this
b. i is not initialized
c. infinite loop
d. off-by-one error

c. infinite loop

Computer Science & Information Technology

You might also like to view...

An Office feature in Word, Excel, and PowerPoint that enables you to change normal text into decorative stylized text

a. Picture effects b. WordArt c. Picture styles

Computer Science & Information Technology

The use of two or more criteria on the same row, it is known as a(n):

A) wildcard criteria. B) simple criteria. C) advanced query criteria. D) compound criteria.

Computer Science & Information Technology