单选题 有以下程序: #include main() {int x; scanf(''%d'',&x); if(x<=4); else if(x<8)printf(''%d\n'',x); } 程序运行时,输入的值在哪个范围才会有输出结果?( )
【正确答案】 D
【答案解析】解析:if条件语句后跟了一个空语句,故要执行else if后面的语句,必须是要x大于4且小于8。