单项选择题

在设计程序时,应采纳的原则之一是( )。

A.不限制goto语句的使用
B.减少或取消注解行
C.程序越短越好
D.程序结构应有助于读者理解
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include<stdio.h> float fun(int x,int y) return(x+y); main() int a=2,b=5,c=8; printf( %3.0f n ,fun((int)fun(a+c,b),a-c)); 程序运行后的输出结果是( )。
A.编译出错
B.9
C.21
D.9.0
单项选择题
有如下程序: #include<stdio.h> main() float x=2.0,y; if(x<0.0) y=0.0; else if(x<10.0)y=1.0 x; else y=1.0; printf( %f n ,y); 该程序的输出结果是( )。
A.0.000000
B.0.250000
C.0.500000
D.1.000000
相关试题
  • 以下程序中函数sort的功能是对数组a中的数...
  • 有以下程序: #include<stdio.h> voi...
  • 有如下程序: #include<stdio.h> mai...
  • 以下程序的输出结果是( )。 #include...
  • 若有以下定义: struct link int data...