Switch case statements are used to execute only specific case statements based on the switch expression.
If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.
Switch case statements are used to execute only specific case statements based on the switch expression.
If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.
need an explanation for this answer? contact us directly to get an explanation for this answer