0
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 2;
switch (x) {
case 1: printf("A");
case 2: printf("B");
case 3: printf("C"); break;
default: printf("D");
}
return 0;
}- AB
- BABCD
- CBCD
- DBC
Correct answer: D