default可以放在switch任意位置

[C语言] 复习switch_C语言

 

[C语言] 复习switch_C语言_02      输出 0         因为case1 没有break

 

[C语言] 复习switch_C语言_03   输出 hellothird