Question: C++ Write a function, array_stats, that finds both the maximum and minimum of an array of values. Because a c++ function cannot return more than
Write a function, array_stats, that finds both the maximum and minimum of an array of values. Because a c++ function cannot return more than one value, create a function that takes three arguments of type vector double, and double. The second two argument should be passed by reference and used to return the max and min of the array. The function should be of type void so that it does not return a value. Write a short program that generates an array to test your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
