Home » C Programming » Decision Making » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    switch (printf("Show\n"))
    {
    case 1:
    printf("Option:First\n");
    break;
    case 2:
    printf("Option:Second\n");
    break;
    default:
    printf("Option:Default\n");
    break;
    }
    }
    1. Show
    2. Option:First
    3. Show
      Option:First
    4. Show
      Option:Second
    5. Show
      Option:Default
Correct Option: E

Show
Option:Default



Your comments will be displayed only after manual approval.