Skip to content

Instantly share code, notes, and snippets.

@kmuralidharan91
Last active July 9, 2019 15:47
Show Gist options
  • Save kmuralidharan91/2beeed7dbc9cbbb3ac995aac30ee1168 to your computer and use it in GitHub Desktop.
Save kmuralidharan91/2beeed7dbc9cbbb3ac995aac30ee1168 to your computer and use it in GitHub Desktop.
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