switch语句及break用法 — 计算机判断题
题目
阅读程序:
#include <stdio.h>
int main(void) {
int code = 4;
switch (code) {
case 4: printf("甲");
case 7: printf("乙"); break;
default: printf("丙");
}
return 0;
}
判断:程序运行后只输出“甲”。