int i = 20; switch(i / 10){ case 2:printf("A"); case 1:printf("B"); } 在上下文和头文件均正常的情况下,程序输出结果为A。()
int i = 20; switch(i / 10){ case 2:printf("A"); case 1:printf("B"); }
正确
错误
先找到符合类型的case执行,然后没break就按顺序往下执行。
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题