Thanks for your interest in C programming. Here, you will find a list of interesting C programming questions/puzzles. C is the basic language for all who are in the computer science field. You can post new c questions and puzzles. Please try to avoid the duplicates.
I hope that this will be very interesting and meaningful for "C" programmers.

Lets us start with simple question.

----------------------------------------------------------------------------------------------------------------------------------------------------
CODE
#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;
  }


If you expect "NONE" is the output, u are wrong. Wats the output & How?

 

 

 


Reply