CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

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

Topics

Switch Statement Fall-Through

C quiz · Question 45
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}