Files
Learn-Algorithms/9 Algorithms Job Interview/测试代码/c14.c
T
2021-03-18 21:24:06 +08:00

16 lines
341 B
C

#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会随机输出