Write the definition of a structure type called arraystats


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write the definition of a structure type called arraystats
Reference No:- TGS02910869

Expected delivery within 24 Hours