The output of the following code segment will be
char x = ‘B’
switch (x)
{
case ‘A’ : printf (“a”);
case ‘B’ : printf (“b”);
default : printf (“c”);
}
Answer & ExplanationOption: [D]
char x = ‘B’
switch (x)
{
case ‘A’ : printf (“a”);
case ‘B’ : printf (“b”);
default : printf (“c”);
}
Answer & ExplanationOption: [D]