简答题:给定程序中,函数proc()的功能是:使数组中的元素的值缩小5倍。请修改程序中的错误,使它能得出正确的结果。注意:不要改

  • 题目分类:C语言
  • 题目类型:简答题
  • 查看权限:VIP
题目内容:
给定程序中,函数proc()的功能是:使数组中的元素的值缩小5倍。
请修改程序中的错误,使它能得出正确的结果。
注意:不要改动main()函数,不得增行或删行,也不得更改程序的结构。
试题程序:
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
float m[10];
f f****found****
int proc(void)
{
int J;
printf(”In subfunc after calling\n”);
for(j=0;j<10;j++)
{
|f****found****
printf(”%f”,m[j]%5);
}
}
void main()
{
int i;
printf(”In main before calling\n”);
for(i=0;i<10;i++)
{
m[i]=i+20:
printf(”%f”,m[i]);
}
proc();
printf(”\nIn main after calling\n”):
for(i=0;i<10;i++)
printf(”%f”,m[i]/S):
参考答案:
答案解析:

回答题:MEMOTo: Paula SmithFrom: Alan BlackmanDate: 24 May 2003

回答题:MEMOTo: Paula SmithFrom: Alan BlackmanDate: 24 May 2003Subject: Websi

查看答案

How many days do they delay?

How many days do they delay?A.about five days B.one or two week C.ten days

查看答案

In 2003, absences peaked in August, though still not reachi

In 2003, absences peaked in August, though still not reaching the level of the

查看答案

Imtex called--their order isn't due until next month, but t

Imtex called--their order isn't due until next month, but they'd like to pick s

查看答案

In this part of the test, you are asked to give a short talk

In this part of the test, you are asked to give a short talk on a business topic

查看答案