试题与答案

请编写一个函数fun(),它的功能是:求出一个4×M整型二维数组中最小元素的值,并将

题型:问答题

题目:

请编写一个函数fun(),它的功能是:求出一个4×M整型二维数组中最小元素的值,并将此值返回调用函数。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仪在函数fun的花括号中填入所编写的若干语句。
试题程序:
#define M 4
#include <stdio.h>
fun (int a[])[M])
main()

int arr[4][M]=11,3,9,35,42,-4,24,32,6,48,-32,7,23,34,12,-7);
printf("min=%d\n",fun(arr));

答案:

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

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

参考答案:解析:打开工作表,选中单元格合并居中。在以中键入公式“=B2/B3”,得出结果后.将公式复制到C4和D4单元格。重新选中以B4:D4,使用【格式】|【单元格】|【数字】|【数值】,设置小数位为“2”。...

试题推荐
题型:阅读理解
根据表格内容选择正确答案
Found:

Is that your red watch?
    It is not new
  Please call John
  Tel:13031764135
Lost:

My red backpack
My name is Nick.
Phone number:899-0118
1. What color is the watch?
A.Yellow.    
B. Red.    
C. New.
2._____ lost a backpack
A. Jenny    
B. John    
C. Nick
3._____ found (找到了) a watch.
A. John    
B. Jenny    
C. Nick
4.What's John's telephone number?
A.I don't know.
B.13031764135.  
C.899-0118.
5. You may read the words ______.
A. in the note book
B. at home
C. on the bulletin board
查看答案
微信公众账号搜索答案