This question is about structure types.
a) Write the definition of a structure type called ArrayStats that contains 3 components of type double called min, max, and avg.
b) Write a function called calc_stats that takes a double array and its size as arguments, and calculates the maximum, minimum, and average values in this array.
The function should return a structure of type ArrayStats whose members contain the three calculated values.