题目
以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。
#include<stdio.h>
#define N 10
void fun(int x[N])
{int i=0;
while(i<N)scanf(“%d”,_______);
}
在程序中下划线处应填入的是
A.x+i
B.&x[i+1]
C.x+(i++)
D.&x[++i]
第1题
以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。 #define N 10 void arrin(int x[N]) { int i=0; while(i<N) scanf("%d",_________); } 在下划线处应填入的是
A.x+i
B.&x[i+1]
C.x+(i++)
D.&x[++i]
第2题
以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。 #define N 10 void arrin(int x[N]) { int i=0; while(i<N) scanf("%d", ______); } 在下划线处应填入的是
A.x+i
B.&x[i+1]
C.x+(i++)
D.&x[++i]
第3题
以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。 #define N 10 void arrin(intx[N]) { int i=0; while(i<N) seanf("%d",______); } 在下划线处应填入的是
A.x+i
B.&x[i+1]
C.x+(i++)
D.&x[++i]
第4题
(30)以下函数的功能是:通过键盘输入数据,为数组中的所有元素赋值。
#include <stdio.h>
#define N 10
void fun(int x[N])
{ int i=0;
while(i<N)scanf("%d", );
}
在程序中下划线处应填入的是
A)x+i
B)&x[i+1]
C)x+(i++)
D)&x[++i]
第5题
A.*x
B.x[N]
C.x
D.&x
第6题
A.x+i
B.&x[i+1]
C.x+(i++)
D.&x[++i]
第7题
第8题
请补充main函数,该函数的功能是:从键盘输入3个整数,然后找出最大的数并输出。
例如,输入:12,45,43,最大值为45。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。
试题程序:
include<stdio.h>
include<conio.h>
main()
{
int a, b, c, max;
clrscr();
printf("\nlnput three numbers:\n");
scanf("%d,%d,%d",&a,&b,&c);
printf("The three numbers are:%d,
%d,%d\n",a,b,c);
if(a>b)
【 】;
else
【 】;
if(max<c)
【 】;
printf("max=%d\n",max);
}
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!