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

  • 题目分类:C语言
  • 题目类型:填空题
  • 查看权限:VIP
题目内容:
从键盘上输入10个数,求其平均值。
main()
{int i;
float f,sum;
for(i=1,sum=0.0;i<11;i++)
{__________ ;
__________ ; }
printf(“average=%f\n”,sum/10); }
参考答案:
答案解析:

在函数中默认存储类型说明符的变量应该是________存储类型。

在函数中默认存储类型说明符的变量应该是________存储类型。A.内部静态 B.外部 C.自动 D.寄存器

查看答案

已有定义int x=3, y=4, z=5;则表达式“!(x+y)+z-1&&y+z/2”的值是________。

已有定义int x=3, y=4, z=5;则表达式“!(x+y)+z-1&&y+z/2”的值是________。A.6 B.0 C.2 D.1

查看答案

回答题:Highways in the United StatesThe United States is well-k

回答题:Highways in the United StatesThe United States is well-known for its netwo

查看答案

We learn from the third paragraph that________.

We learn from the third paragraph that________.A.London was plagued with rats in

查看答案

The causes of sleep problems in older people remain unidenti

The causes of sleep problems in older people remain unidentified.A.Right B.Wrong

查看答案