ExamVeda
Login
Home
This question belongs to C Program C Miscellaneous
C Miscellaneous
?

Determine Output:
void main()
{
      int i=3;
      switch(i)
      {
            default: printf("zero");
            case 1: printf("one"); break;
            case 2: printf("two"); break;
            case 3: printf("three"); break;
      }
}

Answer & Solution
Correct Answer: Option B

The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.