Single Choice Easy

QWhat is the purpose of the "break" statement in a loop?

ID: #15973 C Language Loop Control 129 views
Question Info
#15973Q ID
EasyDifficulty
C Language Loop ControlTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To end the program
  • B To skip the current iteration
  • C To terminate the loop prematurely
  • D To resume the loop from the next iteration
Correct Answer

Explanation

The "break" statement is used to exit the loop immediately, even if the loop condition is still true.

Share This Question

Challenge a friend or share with your study group.