试题与答案

下列程序中函数reverse()的功能是将a所指数组中的内容进行逆置。 #incl

题型:单项选择题

题目:

下列程序中函数reverse()的功能是将a所指数组中的内容进行逆置。
#include<stdio.h>
void reverse(int a[],int n)
int i,t;
for(i=0;i<n/2;i++)
t=a[i];a[i]=a[n-1-i];a[n-1-i]=t;)

main()
int b[10]=1,2,3,4,5,6,7,8,9,10;int i,s=0;
reverse(b,10);
for(i=0;i<3;i++)s+=b[i];
printf("%d\n",s);

程序运行后的输出结果是( )。

A.27

B.6

C.25

D.30

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0408/884c6a67a24b015a44d96b4a4ab8c705.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
题型:填空题
用方框中所给词语的适当形式填空,使短文正确、通顺、连贯。(每词限用一次)
but,   by,   from,   interest,   go,   play,   change,   take,   lunch,   because
      On Saturday, November 7th, we had a trip around Beijing.
      First we took the underground to the centre of Beijing, and then   1   to the bus to the Temple of Heaven.
We visited the places of   2   there and had a wonderful   3  . Then we   4   a bus to Beijing Amusement Park.
We   5   hide-and-seek there. We were tired   6   we enjoyed ourselves. We went back home   7   bus and
underground.
      Tomorrow we   8   to the World Park in Beijing. I'm very excited   9   I will see lots of great places  10   
all of the world.
1.___________    2.___________    3.___________    4.___________    5.____________
6.___________    7.___________    8.___________    9.___________    10.____________
查看答案
题型:单项选择题 共用题干题

女性,58岁,间歇无痛肉眼血尿2个月余。查体未发现异常。B超检查提示“右肾中下部有一个直径4.5cm低回声肿物”

该患者手术治疗时,应选择的手术方式()

A.右肾肿瘤剜除手术

B.右侧肾脏部分切除术

C.右侧肾脏及部分输尿管切除术

D.右侧肾脏、肾周围脂肪囊及肾门处淋巴结切除术

E.右侧肾脏、右输尿管全长及管口部位膀胱的袖套状切除手术

查看答案
微信公众账号搜索答案