【C语言】求出一维数组最大值、最小值、平均值(for函数应用)

#include <stdio.h> #include <stdlib.h> void test01() { int arr[5] = { 0}; //数组初始化; int n = sizeof(arr)/sizeof(arr[0]); //数组中元素个数; int i = 0; int max = arr
相关文章
相关标签/搜索