Computer Science for IGCSE & O level - Programming (Section 13 - No. 19)

What is the result if a CASE statement has no matching case, and no default (or ELSE) clause?
The program ends.
The code inside the first case is executed.
The program continues execution after the CASE block.
An error message is displayed.

Explanation

Without a default or ELSE clause, the program will continue execution after the CASE statement if no case matches.

Comments (0)

Advertisement