State the importance of break statement in the switch construct.
Answers
Answered by
1
a break statement is used after switch case statement because if the break statement will not be used the time comsumption will be more because after a condition is Proved true the control will automatically execute all the next conditions which are false even and thus the break statement protects the control from executing the false statements and it automatically skips the next part after a matched statement has been executed
Similar questions
Computer Science,
8 months ago
Math,
8 months ago
Computer Science,
1 year ago
Art,
1 year ago
Math,
1 year ago
English,
1 year ago