皮皮学,免费搜题
登录
搜题
【单选题】
下面程序的功能是用函数编程实现两个数组中对应元素值的交换。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。程序的运行结果示例:Input array size(n<=10):5↙Input array a:1 2 3 4 5↙Input array b:6 7 8 9 10↙Output array a: 6 7 8 9 10Output array b: 1 2 3 4 5#include #defineN10voidReadData(inta[],intn);voidPrintData(inta[],intn);voidSwap(int*x,int*y);intmain(){inta[N],b[N],i,n;printf("Inputarraysize(n<=10):");scanf("%d",&n);printf("Inputarraya:");ReadData(a,n);printf("Inputarrayb:");ReadData(b,n);for(i=0;i
A.
第17行:&a[i], &b[i] 第52行:temp = *x 第53行:*x = *y 第54行:*y = temp
B.
第17行:a[i], b[i] 第52行:temp = *x 第53行:*x = *y 第54行:*y = temp
C.
第17行:&a[i], &b[i] 第52行:*temp = *x 第53行:*x = *y 第54行:*y = *temp
D.
第17行:a[i], b[i] 第52行:temp = x 第53行:x = y 第54行:y = temp
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】经批准实施不定时工作时间的职工,即使在法定节假日加班也不需要支付加班费。
A.
正确
B.
错误
【单选题】What happened to Khanzir in 2006?
A.
He ran out of his cage
B.
He and his mate had a piglet.
C.
He was attacked by a bear.
D.
He was killed by a bear.
【单选题】This is so difficult a question _____.
A.
that many students can't answer
B.
which many students can’t answer it
C.
as no one can answer it
D.
as nobody can answer
【单选题】What happened in the gun club the following Saturday morning?
A.
Jerry accidentally shot himself.
B.
He lost his gun in the gun club.
C.
He practiced as usual.
D.
His gun was not locked and went off.
【简答题】What happened in 1814? In 1814 __________________________________________________________.
【简答题】This is so difficult a question _____.A. that many students can't answer
【单选题】What happened to Sophia?
A.
She didn't get along well with Jane.
B.
She broke up with her high school boyfriend.
C.
She quarreled with her roommate.
D.
She didn't get along well with her boyfriend.
【单选题】This is so difficult a problem that the scientist is known to ______ on it for about ten years, but hasn't found an answer yet.
A.
have worked
B.
have been working
C.
be working
D.
work on
【单选题】What happened to the speaker in Afghanistan?
A.
He was hit by a big rock and got injured.
B.
He met a group of dangerous people.
C.
He blacked out and had a liver problem.
D.
He had only $3,000 with him.
【单选题】关于金融化发展过程的说法,下面不准确的是()。
A.
伴随着货币资本快速增长
B.
伴随着消费的快速发展
C.
伴随着借贷货币资本的快速积累
D.
有价证券形式存在的虚拟资本快速发展
相关题目: