皮皮学,免费搜题
登录
搜题
【单选题】
下列给定,函数fun的功能是:给定n个实数,输出平均值,并统计平均值以上(含平均值)的实数个数。例如,n=8时,输入193.199、195.673、195.757、196.051、196.092、196.596、196.579、196.763、所得平均值为195.838745,在平均值以上的实数个数应为5。 ”/********found*****/”之后所指的语句有错,请选择下列正确的语句替换。 #include #include #include int fun(float x[], int n) {int j, c=0;float xa=0.0; for (j=0; j xa += x[j]/n; printf("ave =%f\n",xa); for (j=0; j /************found************/ if (x[j] => xa) c++; return c; } main () {float x[100] = {193.199, 195.673, 195.757, 196.051, 196.092, 196.596, 196.579, 196.763}; system("cls"); printf("%d\n", fun (x, 8)); }
A.
if (x[j] > xa)
B.
if (x[j] >= xa)
C.
if (x[j] <= xa)< /div>
D.
if (x[j] == xa)
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】_______ he locked the door, he left.
A.
After
B.
where
C.
though
D.
because
【单选题】以下程序的输出结果是(    )。 #include<stdio.h> main() {printf("%d\n",NULL);    }
A.
不确定的(因变量无定义)    
B.
0    
C.
-1
D.
1
【单选题】以下程序的输出结果是( )。 #include "stdio.h" main() { int a=8; if (a<8) printf("ABCD\n"); else printf("1234\n"); }
A.
ABCD
B.
1234
C.
8
D.
7
【单选题】以下程序的输出结果是( )。 #include "stdio.h" main( ) { int i; for(i='A';i printf("%c",i+32); printf(" "); }
A.
编译不通过,无输出
B.
abcdefgh
C.
acegi
D.
aceg
【单选题】“应收账款”账户所属明细账户期末如果出现贷方余额,应填入资产负债表中的()。
A.
应付账款项目
B.
预付款项项目
C.
预收款项项目
D.
应收账款项目
【单选题】以下程序的输出结果是 #include"stdio.h" #include "string.h" main() { char b1[8]="abcdefg",b2[8],*pb=b1+3; while (--pb>=b1) strcpy(b2,pb); printf("%d\n",strlen(b2)); }
A.
8
B.
3
C.
1
D.
7
【单选题】“应收账款”账户所属明细账户期末如果出现贷方余额,应填入资产负债表的项目是()。
A.
应收账款
B.
预收款项
C.
应付账款
D.
预付款项
【单选题】“应付账款”账户所属明细账户期末如果出现借方余额,应填入资产负债表的项目是()。
A.
应收账款
B.
预收款项
C.
应付账款
D.
预付款项
【单选题】以下程序的输出结果是( )。 #include int main(void) {printf("%0.2s","abcdefg"); }
A.
bc
B.
fg
C.
ab
D.
abcdefg
【判断题】班集体的荣誉需要全班每个同学共同维护
A.
正确
B.
错误
相关题目:
关于我们
免责声明
版本记录
© 2019 pipixue.com 京ICP备20000060号-6