default is the statement in switch cases
Answers
Answered by
2
Answer:
The default statement is executed if no case constant-expression value is equal to the value of expression . If there's no default statement, and no case match is found, none of the statements in the switch body get executed. ... A case or default label can only appear inside a switch statement.
Answered by
1
Answer:
The default statement is executed if no case constant-expression value is equal to the value of expression . If there's no default statement, and no case match is found, none of the statements in the switch body get executed. ... A case or default label can only appear inside a switch statement.
Similar questions
Social Sciences,
2 months ago
History,
2 months ago
Math,
2 months ago
English,
5 months ago
English,
11 months ago
Political Science,
11 months ago