Question: Why is the default CASE always the last CASE in a SWITCH block? Since CASEs are resolved in order, no CASEs below the default would
Why is the default CASE always the last CASE in a SWITCH block?
Since CASEs are resolved in order, no CASEs below the default would ever get processed
Because it looks best there
Because it can never have multiple valums associated with it
Default is optional, and all optional keywords are at the end of blocks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
