Multiple choice

Which of the following is not true about loops in ‘C’?

  1. Working of while and do-while loop is same.

  2. while(1) is infinite loop and exit() can be written to come outside the loop.

  3. for(;;) implements an infinite loop.

  4. A break statement takes the execution control out of the loop.

  5. A continue statement skips the execution of the statements after the control to the beginning of the loop.

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

Working of while and do-while loop is not same. As while is entry control and do-while is exit control.