Multiple choice technology programming languages What does the following code snippet do: for(;;) ; The snippet is illegal It loops forever It is ignored by compiler, but it is not illegal None of the Above Reveal answer Fill a bubble to check yourself B Correct answer Explanation The syntax for(;;) ; is a valid C/C++ statement. The empty conditions in the for loop default to true, and the trailing semicolon represents an empty loop body, causing the program to loop infinitely.