I came across this puzzle here. I can\'t figure out why NONE is not printed. Any ideas?
#include
int main()
{
int a=10;
default is spelled wrong. and so that case is never reached. http://codepad.org/gQPA6p4s
#include
int main()
{
int a=10;
switch(a)
{
case '1':
printf("ONE\n");
break;
case '2':
printf("TWO\n");
break;
defalut:
printf("NONE\n");
mickey_mouse:
printf("No Mickey\n");
default :
printf("CORRECT DEFAULT\n");
}
return 0;
}