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

C++
 C++ Write a function, array_stats, that finds both the maximum and

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

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!