Lesson 8 of 50 · c
Control Flow – switch
Duration: 7 mins
switch selects among discrete constant values, often used instead of many if‑else checks.
switch (menu) {
case 1: printf("New Game\n"); break;
case 2: printf("Load Game\n"); break;
default: printf("Invalid selection\n");
}