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