1. Home
  2. Computer Science MCQs
  3. C Programming
  4. What does a break statement do inside a loop?

Added 30 Nov -0001

What does a break statement do inside a loop?

  1. It leaves the innermost enclosing loop Correct answer
  2. It skips only the current iteration
  3. It terminates the whole program at once
  4. It restarts the loop from the beginning

Correct answer

A. It leaves the innermost enclosing loop

17 views

MCQSEXAM

Explanation

break moves control to the statement after the innermost loop or switch that encloses it.

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