Which of the following is optional in a switch case construct?
O switch
case
O:
default
What is fall through in a switch-case? *
Answers
Answered by
0
Answer:
default
Explanation:
defaualt
Answered by
1
The default case is optional in a switch case construct.
- Whenever the test-expression value does not fit any of the cases within the switch, the default is executed.
- Otherwise, in the switch, it is not necessary to write default. The default case also does not need a break.
- There may be an optional default case for a switch argument, which must appear at the end of the switch. If neither case is valid, the default case may be used to perform a mission.
Similar questions