what is the use of default in switch case????
Answers
Answered by
1
Answer:
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