Computer Science, asked by noorpree2323, 9 months ago

explain the significance of the default label in the switch statement ​

Answers

Answered by Anonymous
0

default clause in switch statement works as the same as else clause in if else block. To simplify my statement, when no cases in the switch clause matches with the proper condition, then default clause is executed.

Answered by Anonymous
2

The switch and case keywords evaluate expression and execute any statement associated with constant expression whose value matches the initial expression. If there is no match with the constant expression, the statement associated with the default keyword is executed.

Similar questions