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
Q32: What is the value of x after
Q35: If you want a loop to quit
Q36: How many times is "Hi" printed to
Q37: Which of the following is not a
Q39: if x is 0, what is the
Q40: Which of the following are equivalent to
Q41: What is NOT an advantage of an
Q42: If you need to write a do-while
Q43: Which of the following are valid case
Q45: Which loop structure always executes at least
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents