Created
November 11, 2014 16:00
-
-
Save wjlafrance/ce7581374a47ed65bf44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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