Multiple choice

What would be the conclusion of the following statement in 'C'? int i=5;for(;;){ printf(n Value of i=%d,i);}

  1. Infinite loop will be generated.

  2. value of i=10

  3. i=6

  4. Printf() statement would not be executed.

  5. Syntax error in the program.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct option as in the statement initialization, condition and increment statements are not present and in the absence of these statements infinite loop is generated.