水木社区上的一个兄弟找到的这个网页(http://www.gowrikumar.com/c/index.html),如果你自以为C学的够好了,那做一下这上面的题检验一下吧。
我没做几道,但下面这道题真让我……,找到答案时我禁不住“O...M...G...”了一声。
我没做几道,但下面这道题真让我……,找到答案时我禁不住“O...M...G...”了一声。
#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 the output of the above program to be NONE, I would request you to check it out!!
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 the output of the above program to be NONE, I would request you to check it out!!
提示