Explain the function of break with an example
Answers
Answered by
14
Explanation:
Whenever a break statement is encountered inside a loop, the control directly comes out of loop terminating it. It is used along with if statement, whenever used inside loop(see the example below) so that it occurs only for a particular condition.It is used in switch case control structure after the case blocks.
Hope it helps uhh ❤️
Answered by
0
Answer:
Whenever a break statement is encountered inside a loop, the control directly comes out of loop terminating it. It is used along with if statement, whenever used inside loop(see the example below) so that it occurs only for a particular condition. b) It is used in switch case control structure after the case blocks.
Attachments:

Similar questions
Math,
6 months ago
Hindi,
6 months ago
Computer Science,
11 months ago
English,
11 months ago
Social Sciences,
1 year ago
Biology,
1 year ago