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 :

  1. Program Won’t be Compiled.
  2. Check Spelling of “default”.
default