Q. What is the purpose of the ‘default’ clause in a switch statement?
Solution:
The default clause executes when no case matches the switch expression.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The default clause executes when no case matches the switch expression.
Strengthen Your Practice with our comprehensive question bank.