(Solved) : Include Q43959484 . . .
Please help
#include <stdieb? // implement the DoStats function void DoStats int main() { int a[] = {3,5,6,1}; int max = 0, min = 0; double mean = DoStats(a, 4, &max, &min); printf(“average: %.3f max: %d min: %dn” mean, max, min); Here, we have a DoStats function that takes in three parameters, in order: • An integer array • An integer as the size of the integer array • Two integers to store the results of max and min, passed-by-reference The function will also return the average value (of double type) of the elements of the input array. Please implement the DoStats function so that the above main program will run successfully. The output of the program above should be “average: 3.750 max: 6 min: 1”. Please do NOT change the main program. Show transcribed image text #include
Expert Answer
Answer to #include …
OR