Question: Write a function that computes the average value of an array of floating-point data, using a pointer variable, not an integer index, to traverse the
Write a function that computes the average value of an array of floating-point data, using a pointer variable, not an integer index, to traverse the array elements. double average (double* a, int size)
You must comment your code including comments at the beginning of each function that explains what the program does and comments for every line of code that explains what is happening for the line of code. Apply troubleshooting and testing strategies to ensure your code compiles, runs, and provides accurate results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
