Files

16 lines
341 B
C
Raw Permalink Normal View History

2014-05-18 13:02:39 +08:00
#include<stdio.h>
int main()
{
int a=1;
switch(a)
{ int b=20;
case 1: printf("b is %d\n",b);
break;
default:printf("b is %d\n",b);
break;
}
return 0;
}
// In my computer ,output:b is 32767 switch中只会从case开始执行,b会随机输出