+3 votes
in Mathematics by kratos

The output of the following code segment will be

char x = ‘B’;

switch (x) {

case ‘A’: printf(“a”);

case ‘B’: printf(“b”);

case ‘C’: printf(“c”);

}

(A) B

(B) b

(C) BC

(D) bc

1 Answer

+6 votes
by kratos
 
Best answer

Correct option -**(D) bc**

Explanation:-

Since there is no break statement, all the statement after case’B’ are ****.

...