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");
}
}
#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
Join The Discussion