What will be the output of the following code segment?

1.1 What will be the output of the following code segment?
int a = 0;
switch (a) {
case 0:
default: printf("default ");
case 1: printf("a = %d", a);
}
A) default
B) default a = 0
C) a = 0
D) nothing will be displayed on the screen


Leave a Reply