what is the important of break and Default statement in switch
Answers
Answered by
10
if break statement is not used then the output and execution will continue to which may lead to a fall through...thus it will provide all answers for all cases
default statement is necessary for stopping the program or else it will continue to display options and never end...
default statement is necessary for stopping the program or else it will continue to display options and never end...
Anonymous:
plz mark me brainliest if my answer helped u...
Similar questions
English,
8 months ago
Chemistry,
8 months ago
Chemistry,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago