首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; for(p=a,s=a;p-a<n; p++) if (______)s=p;
以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; for(p=a,s=a;p-a<n; p++) if (______)s=p;
admin
2009-02-15
29
问题
以下程序调用findmax函数返回数组中的最大值 findmax(int *a,int n) { int *p,*s; for(p=a,s=a;p-a<n; p++) if (______)s=p; return(*s); } main() { int x[5]={12,21,13,6,18}; printf("%d\n",findmax(x,5)); } 在下划线处应填入的是( )
选项
A、p>s
B、*p>*s
C、a[p]>a[s]
D、p-a>p-s
答案
2
解析
转载请注明原文地址:https://kaotiyun.com/show/OXXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
表达式Sgn(0.25)的值是()。
可以产生30~50(含30和50)之间的随机整数的表达式是()。
编写如下程序:PrivateSubCommand1_Click()Fori=1To4PrintSpace(12-3*i);Forj=1Toi
在窗体上画一个命令按钮,名称为Command1,然后编写如下代码:OptionBase0PrivateSubCommand1_Click() DimA1(4)AsInteger,A2(4)AsInteger Fork=0To
以下关于方法的叙述中,错误的是
考生文件夹下有一个工程文件sjt5.vbp。运行程序后,从文件中读出数据,将其放入一个5×5的二维数组a中。请编写程序,找出数组a中每行的最大值及该值在行中的次序(列下标),并将所找到的结果分别保存到一维数组b、c中(a中第一行的最大值保存在b(1)中,最
在窗体上有两个名称分别为Text1、Text2的文本框,一个名称为Command1的命令按钮。运行后的窗体外观如图所示。设有如下的类型和变量声ming明:PrivateTypePersonnameAsString*8
对长度为n的线性表作快速排序,在最坏情况下,比较次数为
下面不属于对象主要特征的是()。
随机试题
制定学前教育目标的依据是:我国教育方针、学前儿童发展的需求和()
群体动力
A.蹄叶炎B.腐蹄病C.局限性蹄皮炎D.指(趾)间皮炎E.指(趾)间皮肤增生奶牛,跛行,体温40.5℃,四肢蹄部肿胀,触诊有热痛,右后肢蹄底有窦道,内有恶臭坏死物。病原检查发现坏死杆菌。最可能的蹄病是
黄河与海河的入海口都为淤泥质海岸。而近30年来,海河入海口的海岸线基本稳定,黄河入海口的海岸线向海洋推进。形成这种差异的主要因素是海岸的:
根据《建设工程安全生产管理条例》,专职安全生产管理人员负责对安全生产进行现场监督检查。发现安全事故隐患,应当及时向项目负责人和安全生产管理机构报告;对违章指挥、违章操作的,应当()。
《建设工程质量管理条例》属于( )。
__________是在教师指导下,学习者接受事物意义的学习。它是概念同化过程,是课堂学习的主要形式。
VBScript调用过程时要用______关键字。
你们年级班有多少个
A、Takinglongbusinesstrips.B、Workingonweekends.C、Havingworkexperience.D、livinginthecompany’sdormitory.B题目询问这份工作的特殊
最新回复
(
0
)