Multiple Choice
What is wrong with the following for loop?
Forint 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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q21: All nested if-else statements can be converted
Q22: What is the output of the following
Q23: In an enumerated data type, different constants
Q24: How many times is "Hi" printed to
Q25: Which of the following are equivalent to
Q27: What is the output of the following
Q28: It is illegal to make function calls
Q29: If you want a loop to quit
Q30: Given the following enumerated data type definition,
Q31: If you need to write a do-while