Skip to content

Instantly share code, notes, and snippets.

@Taehun
Created May 7, 2011 12:59
Show Gist options
  • Save Taehun/960475 to your computer and use it in GitHub Desktop.
Save Taehun/960475 to your computer and use it in GitHub Desktop.
switch area case in gcc
#include <stdio.h>
int main(void)
{
switch (15) {
case 10 ... 20:
printf("This case run.\n");
break;
default:
printf("Default\n");
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment