Multiple choice technology programming languages

C++

  1. The snippet is illegal

  2. It loops forever

  3. It is ignored by compiler, but it is not illegal

  4. None of the Above

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

This question lacks context, but like question 135521, it refers to an infinite loop construct (such as while(true) or for(;;)), which is syntactically legal and loops forever.