A
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");
}
{
char code=64;
switch(code)
{
case 64: printf("SHIP ");break;
case 8*8: printf("BOAT "); break;
default: printf("PETROL");
}
printf("CHILLY");
}
- Correct Answer - Option(D)
- Views: 16
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.