Multiple choice c

consider the following statement:

while ( 3 ) ;

  1. Infinite loop

  2. Syntax error

  3. Executes only 3 iterations

  4. Executes only 4 iterations

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

In C, any non-zero integer is considered true. Therefore, while(3) evaluates to true, and since the loop body is empty (just a semicolon), it loops indefinitely.