-
What will be the output of the following C code?
#include <stdio.h>
switch (name)
{
case 'n':
case 'N':
printf("Right...");
}
-
- if (name== 'n')
if (name== 'n') printf("Right..."); - if (name== ‘n’ || name== ‘N’) printf(“Right...”);
- if (name== ‘n’ && name== ‘N’) printf(“Right...”);
- All of above
- None of these
- if (name== 'n')
Correct Option: B
error: expected unqualified-id before 'switch'
switch (ch)