Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 1;
    switch (a)
    {
       case a:
          printf("Case A ");
       default:
          printf("Default");
    }
}

A. Output: Case A

B. Output: Default

C. Output: Case A Default

D. Compile time error

Answer: Option D


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures