1. Home
  2. Computer Science MCQs
  3. C Programming
  4. The break statement inside a loop causes control to:

Added 30 Nov -0001

The break statement inside a loop causes control to:

  1. exit the innermost loop or switch immediately Correct answer
  2. skip only the current iteration of the loop
  3. restart the loop from its very beginning
  4. terminate the whole program at once

Correct answer

A. exit the innermost loop or switch immediately

13 views

MCQSEXAM

Explanation

break exits the nearest enclosing loop or switch, whereas continue skips the rest of the current iteration.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs