πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) FIVE LION

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
189
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate