Q. What is the output of C Program with switch statement or block?
Code:
int main()
{
char code=64;
switch(code)
{
case 64: printf("SHIP ");break;
case 8*8: printf("BOAT "); break;
default: printf("PETROL");
}
printf("CHILLY");
}
β
Correct Answer: (D)
Compiler error