Computer Science, asked by 18cricketlover, 2 months ago

what is the use of default in switch case????​

Answers

Answered by vatsanandini895
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