Skip to content

Instantly share code, notes, and snippets.

@wjlafrance
Created November 11, 2014 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjlafrance/ce7581374a47ed65bf44 to your computer and use it in GitHub Desktop.
Save wjlafrance/ce7581374a47ed65bf44 to your computer and use it in GitHub Desktop.
// http://stackoverflow.com/questions/26868663/switch-statement-in-objective-c
#include <stdio.h>
int main() {
int myVar = 2;
switch (myVar) {
case 1: {
printf("one\n");
break;
case 2: {
printf("two\n");
break;
}
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment