CJCoding With Joseph
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
C Quiz #45

Switch Statement Fall-Through

mediumConditionals

What does this code print?

📄 Code

1int n = 2;
2switch (n) {
3 case 1: printf("A");
4 case 2: printf("B");
5 case 3: printf("C"); break;
6 default: printf("D");
7}