write my assignment 7746

2 Array Statistics (20 points)

Write a program that returns the min, max and average value of an array of integers named data ar. Your program should call a single function that returns that mean, max and mean value of the array. The declaration of this function is given below:

void array processing(int *x, int size, int *min p, int *max p, float *mean p)

/* x is a pointer to the first array element

size is the array size

min p is a pointer to a var min in the main function that holds the min

max p is a pointer to a var max in the main function that holds the max

mean p is a pointer to a var mean in the main function that holds the mean

1

Declared the array of integers within the main function int data ar={−3,5,6,7,12,3,4,6,19,23,100,3,4,−2,9,43,32,45,32,2,3,2,−1};

Answer using stdio.h

Add comments please explaining your code and steps

 
"Not answered?"
Get the Answer