单项选择题
avg函数的功能是求整型数组中的前若干个元素的平均值,设数组元素个数最多不超过10,则下列函数说明语句错误的是( )。
A.int avg(int *a,int n);
B.int avg(int a[10],int n);
C.int avg(int a,int n) ;
D.int avg(int a[],int n);
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下函数#include #include main(){ printf(“%d n”,strren”ATS n012 1”) );}程序运行后的输出结果是( )。
A.3
B.8
C.4
D.9
点击查看答案&解析
单项选择题
以下选项中有语法错误的是( )。
A.char *str[ ]={“guest”};
B.char str[10 ]={“guest”};
C.char *str[3] *str[1]={“guest”};
D.char str[3][10];str[1]={“guest”};
点击查看答案&解析
相关试题
设文件test.txt中原已写入字符串Begin,执...
有以下程序#include mian(){int arr...
以下程序段的输出结果是( )。#include...
以下程序的输出结果是( )。#include ...
以下程序的功能是输出a数组中的所有字符串...