Last active
July 9, 2019 15:47
-
-
Save kmuralidharan91/2beeed7dbc9cbbb3ac995aac30ee1168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch expression { | |
case expression1: | |
statement(s) | |
fallthrough /* optional */ | |
case expression2, expression3: /* we can use , to use same implementation for more than one case */ | |
statement(s) | |
fallthrough /* optional */ | |
default : /* Optional */ | |
statement(s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment