【简答题】【选择语句编程】 现有如下程序段,此程序段编译有错误,则程序段的错误出在: #include void main( ) { int a=30,b=40,c=50,d; d=a>30?b:c; switch(d) { case a:printf("%d,",a); case b:printf("%d,",b); case c:printf("%d,",c); default:printf("#")...
【单选题】现有如下程序段,此程序段编译有错误,则程序段的错误出在( )#includeint main(){ int a=30,b=40,c=50,d;d=a>30?b:c;switch(d){ case a:printf("%d,",a);case b:printf("%d,",b);case c:printf("%d,",c);default:printf("#");}}
A.
default:printf("#");这个语句
B.
d=a>30?b:c;这个语句
C.
case a:printf("%d,",a); case b:printf("%d,",b); case c:printf("%d,",c);这三个语句