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,
1 month ago
Math,
1 month ago
English,
3 months ago
English,
9 months ago
Political Science,
9 months ago