Q. What is the output of C Program with switch statement or block?
Code:int main()
{
char code='K';
switch(code)
{
case "A": printf("ANT ");break;
case "K": printf("KING "); break;
default: printf("NOKING");
}
printf("PALACE");
}
β
Correct Answer: (D)
Compiler error