Question: please do in c++ language Q3. Write a function of the form void minMax(const double arri), con st int size, double & minval, doubl e
Q3. Write a function of the form void minMax(const double arri), con st int size, double & minval, doubl e & maxVal) { ... } which finds the minimum and maximum values in the array arr, using the pass-by- reference parameters minVal and maxVal as the outputs from the function. The size parameter specifies the length the array. You can test your function by putting the following code into your main() function: double arr[] = {-4.3,7.0,10.4,3.9,1 .2,9.8, 11.3}; double min, max; minMax(arr, sizeof(arr)/sizeof(arr. 0]), min, max); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
