Computer Science, asked by jhumaroychowdhury, 1 year ago

what is the purpose of default in switch case statement

Answers

Answered by pranitkhandekar8
7

Explanation:

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 a constant expression, the statement associated with the default keyword is executed.

Answered by Anonymous
1

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