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