Check Your C Skill : Switch Case : 1
If you expect the output of the above program to be NONE, I would request you to check it out!!
#include<stdio.h> int main() { int a=10; switch(a) { case '1': printf("ONE\n"); break; case '2': printf("TWO\n"); break; defa1ut: printf("NONE\n"); } return 0; }
Answer :
- Program Won’t be Compiled.
- Check Spelling of “default”.
default