switch (c) { case 'a': printf("It was an 'a'\n"); break; case 'b': printf("It was a 'b'\n"); break; default: printf("none of them\n"); }