Computer Science, asked by ayantikapal70, 11 months ago

Explain the function of break with an example

Answers

Answered by Anonymous
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 rshyam1146
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