试题与答案

fun函数的功能是:首先对a所指的N行N列的矩阵,找出各行中的最大数,再求这N个最大

题型:填空题

题目:

fun函数的功能是:首先对a所指的N行N列的矩阵,找出各行中的最大数,再求这N个最大值中最小的那个数并作为函数值返回。请填空。
#include <stdio.h>
#define N 100
int fun(int(*a)[N])
int row,col,max,min;
for(row=0;row<N;row++)
for(max=a[row] [0],col=1;col<N;col++)
if( 【13】 )max=a[row][col];
if(row==0)min=max;
else if( 【14】 )min=max;

return min;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0715/84f71b3fce661d36d92f328a2f60d460.html

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

参考答案:降低成本

试题推荐
微信公众账号搜索答案