试题与答案

编程题请编一个函数void fun(int tt[M][N], int pp[N

题型:多项选择题

题目:

编程题请编一个函数void fun(int tt[M][N], int pp[N]), tt指向一个M行N列的二维数组,求出二维数组每列中最大元素,并依次放入pp所指的一维数组中。二维数组中的数已在主函数中给出。注意:部分源程序给出如下。请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。试题程序:#include#include#define M 3#define N 4void fun(int tt[M][N],int pp[N]){}main(){ int t[M][N]={{68, 32, 54, 12},{14, 24, 88, 58},{42, 22, 44, 56}}; int p[N],i,j,k; clrscr(); printf("The riginal data is:\n"); for(i=0;i

答案:

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

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

参考答案: September A0 is the Teachers’ Day. In the afternoon, Zhonghua School held a celebration meeting, at which more than twenty old teachers were praised with a...

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