Which of the following will terminate the loop immediately in C?
AWhen a break statement is encountered
BWhen the loop variable reaches a certain value
CWhen a continue statement is encountered
DWhen the loop condition is not given
Show answerHide answer
Correct answer: (A) When a break statement is encountered
Explanation
break exits the enclosing loop immediately, regardless of the condition. continue only skips the rest of the current iteration and goes on with the next one.