首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序中,主函数调用了LineMax函数,实现在N行M列的二维数组中,找出每一行上的最大值。 请填空。 #define N 3 #define M 4 void LineMax(int x[N][M])
以下程序中,主函数调用了LineMax函数,实现在N行M列的二维数组中,找出每一行上的最大值。 请填空。 #define N 3 #define M 4 void LineMax(int x[N][M])
admin
2009-02-15
56
问题
以下程序中,主函数调用了LineMax函数,实现在N行M列的二维数组中,找出每一行上的最大值。
请填空。
#define N 3
#define M 4
void LineMax(int x[N][M])
{ int i,j,P;
for(i=0;i<N;i++)
{ p=0;
for(j=1;j<M;j++)
if(x
[p]<x
[j])【 】;
printf("The max value in line %d is %d\n",i,【 】);
}
main()
{ int x[N][M]={1,5,7,4,2,6,4,3,8,2,3,1};
【 】;
}
选项
答案
p=j x[i][p] LineMax(x)
解析
转载请注明原文地址:https://kaotiyun.com/show/kNXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
上有1个名称为List1的列表框,1个名称为Text1的文本框。编写如下程序代码:PrivateSubForm_Load()List1.AddItem"花卉"List1.AddItem"绿植"List1.Addl
下列关于通用对话框CommonDialogl的叙述中,错误的是()。
下列有关文件的叙述中,正确的是()。
语Dima(-3To4,3To6)AsInteger定义的数组的元素个数是()。
在考生文件夹下有一个工程文件sjt4.vbp,相应的窗体文件为sjt4.frm,在窗体上有一个文本框和一个命令按钮。当程序运行后,单击命令按钮,即可计算出0~100范围内所有偶数的平方和并显示在文本框中。在窗体的代码窗口中,已给出了部分程序,其中计算偶数平
以下打开VisualBasic菜单编辑器的操作中,错误的是()。
下列数组定义中错误的是()。
有下面的程序段:x=InputBox("字符串","输入","请输入")Printx如果执行上面程序段时没有从键盘输入任何内容就直接按了回车键,则输出内容是()。
用语句Open"C:\teac.txt"ForInputAs#1打开文件后,就可以编程序()。
窗体上有名称为Commandl的命令按钮和名称为Textl的文本框()。PrivateSubCommandl_Click()Textl.Text=“程序设计”Textl.SetFocusEndSubPrivateSub
随机试题
糖尿病病人体温38℃,围手术期处理措施中不正确的是
鉴别慢性充血性心力衰竭与门脉性肝硬化所致的腹水最可靠的检查是
既能健脾,又能燥湿的药物
会计科目各级码长分别为3,2,2,那么对科目:银行存款-工商行-人民币户,编码应为()。
注册会计师通过实施“检查外来账单与本单位有关账目的记录是否相符”这一审计程序,可能证实被审计单位管理层对财务报表的()认定。
马云说:“要有选择性地读书,不是什么书都要读。”请谈谈你对这句话的理解。
AsPhiladelphiagrewfromasmalltownintoacityinthefirsthalfoftheeighteenthcentury,itbecameanincreasinglyimport
在编程中,将高级语言源程序翻译成机器语言目标程序的工具有两种类型:解释程序与______。
在他卷入一毓的丑闻事件之后,选民们不再支持他。(turnawayfrom)
Adultswhohadbeenfedplentyoffruitwhentheywerechildrenarelesslikelytosufferfromcertaintypesofcancer,British
最新回复
(
0
)