Multiple choice

Which of the following is correct regarding 'Break' and 'Continue' statements that are used in C++?

  1. Both are same

  2. Both allow to exit from the loop

  3. One allows to exit from the loop and another skips the iteration

  4. None of these

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

'Break' statement is used to exit from the loop statement in the program whereas 'Continue' is used to skip the specified iteration from the loop statement.