题目内容:
【单选题】下面程序段的输出为( )int a=15, b=10, c=20, d;d = a >12 ? b : c;switch(d){ case 5:printf(“%d,”, a); case 10:printf(“%d,”, b); case 20:printf(“%d,”, c); default:printf(“#”);}
A:15,10,20,#B:10,20,#C:10,20D:10参考答案:
【单选题】下面程序段的输出为( )int a=15, b=10, c=20, d;d = a >12 ? b : c;switch(d){ case 5:printf(“%d,”, a); case 10:printf(“%d,”, b); case 20:printf(“%d,”, c); default:printf(“#”);}
A:15,10,20,#B:10,20,#C:10,20D:10