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: (A)
KING PALACE