Computer Science, asked by kunalmalik786, 4 months ago

what is the purpose of using default case in switch statement​

Answers

Answered by Anonymous
6

Question:- What is the purpose of using default case in switch sstatement ?

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