填空题:从键盘上输入10个数,求其平均值。main(){int i; float f,sum; for(i=1,sum=0.0;

  • 题目分类:C语言
  • 题目类型:填空题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
从键盘上输入10个数,求其平均值。
main()
{int i;
float f,sum;
for(i=1,sum=0.0;i<11;i++)
{__________;
__________ ;
}
printf(“average=%f\n”,sum/10);
}
参考答案:
答案解析:

不能把字符串:Hello!赋给数组b的语句是(  )。

不能把字符串:Hello!赋给数组b的语句是(  )。A.char b[10]={’H’,’e’,’l’,’l’,’o’,’!’}; B.char b[10];

查看答案

以下程序的输出结果是(  )。int x=10,y=10; printf(“%d %d\n”,x--,--y);

以下程序的输出结果是(  )。int x=10,y=10; printf(“%d %d\n”,x--,--y); A.10 10 B.9 9   来源:考试

查看答案

C语言的预处理语句以__________开头。

C语言的预处理语句以__________开头。

查看答案

C语言中以只读方式打开一个文件应选择_______________参数。

C语言中以只读方式打开一个文件应选择_______________参数。A.“r” B.“w” C.“rb” D.“a”

查看答案

Which of the following was the immediate cause that made Kin

Which of the following was the immediate cause that made King change his view on

查看答案