Question: Write in C++ (5 pts) Write a function that takes as an input parameter an array of integers, a length parameter (an int), and two

Write in C++

(5 pts) Write a function that takes as an input parameter an array of integers, a length parameter (an int), and two more int parameters that will be modified using pass by reference. When the function is called the third and fourth parameters are initialized to -1 (before the function call). The function should locate the smallest value in the array, modifying the third parameter to be the smallest value and the fourth to be the index location of the smallest value. Make sure you print these values after youve returned from the function.

(5 pts) Write a function that takes as an input parameter an array of integers (and the size of the array). The function should print out the address of every value in the array.

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!