Question: Write a function, named avg, that receives an array of integer values and returns the average of those values in that array. Since this function

Write a function, named avg, that receives an array of integer values and returns the average of those values in that array. Since this function is computing the average, it should return a float. Remember, when giving an array to a function you must also give the function the size of the array because it will not be able to determine the size of an array on its own. Test your function with three different integer arrays of sizes, 5, 7, and 10. You do not have to ask the user for values. Since the function returns a value you should assign its result to a variable and print it out. Perform this is code blocks using C.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!