Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion
6 / 123
Is a default case necessary in a switch statement?
Answer:
No switch cases can exist with out default case, in switch case default case will trigger when it is not match with any other case values.
Asked In ::
Dreamer
13 Jan, 2020 1:41 PM
No switch cases can exist with out default case, in switch case default case will trigger when it is not match with any other case values.