-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int n = 98;
switch (n)
{
case 'b':
printf("Right... ");
break;
case 98:
printf("Wrong...\n");
break;
}
}
-
- Character case value error
- Right...
- Wrong...
- Duplicate case value error
- None of these
Correct Option: D
Compilation Error
In function 'int main()':
error: duplicate case value
case 98:
error: previously used here
case 'b':