Advertisements
Advertisements
Question
Write Short notes on Switch statement.
Answer in Brief
Advertisements
Solution
- The switch statement is used to perform different actions based on different conditions.
- It tests for equality only.
- It uses default value when all the case values are not matched.
- It can have multiple ease values.
shaalaa.com
Is there an error in this question or solution?
