• 2021-04-14
    有如下程序 #include struct group { int first, second, third; }; struct group get_min_max_sum(int* array, int len) { int i; struct group res; res.first = array[0]; res.second = array[0]; res.third = array[0]; for (i=1; i res.second) res.second = array[i]; res.third += array[i]; } return res; } main() { int array[5] = {9, 1, 3, 4}; struct group res = get_min_max_sum(array, 5); printf("min=%d,max=%d,sum=%d\n", res.first, res.second, res.third); } 程序运行后的输出结果是