-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int n = 1;
switch (n)
{
case n:
printf("Case N ");
default:
printf("Default");
}
}
-
- Compilation Error
- Case N
- Default
- All of above
- None of these
Correct Option: A
Compilation Error
In function 'int main()':
error: 'a' cannot appear in a constant-expression
case a: