A

Admin • 833K Points
Coach

Q. What is the output of C Program with switch statement or block?

Code:
int main()
{
static int a=5;

switch(a)
{
case 0: printf("ZERO ");break;
case 5: printf("FIVE ");break;
case 10: printf("DEER ");
}

printf("LION");
}
  • (A) ZERO FIVE DEER LION
  • (B) FIVE DEER LION
  • (C) FIVE LION
  • (D) Compiler error
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.