significance of default in switch case
Answers
Answered by
0
A switch statement can have an optional default case, which must appear at the end of the switch. The default case can be used for performing a task when none of the cases is true. No break is needed in the default case.☺☺☺
Answered by
1
Explanation:
A switch statement can have an optional default case, which must appear at the end of the switch. The default case can be used for performing a task when none of the cases is true. No break is needed in the default case.
Similar questions
Math,
2 months ago
Math,
2 months ago
Computer Science,
2 months ago
Social Sciences,
4 months ago
English,
4 months ago
Math,
10 months ago
Hindi,
10 months ago
Geography,
10 months ago