Skip to content

Instantly share code, notes, and snippets.

@kmuralidharan91
Created July 9, 2019 14:54
Show Gist options
  • Save kmuralidharan91/30e7f4f5a3d80760de43c1bd03323d0d to your computer and use it in GitHub Desktop.
Save kmuralidharan91/30e7f4f5a3d80760de43c1bd03323d0d to your computer and use it in GitHub Desktop.
switch(expression){
case constant-expression :
statement(s);
break; /* optional */
case constant-expression :
statement(s);
break; /* optional */
/* you can have any number of case statements */
default : /* Optional */
statement(s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment