Question: 11.5 (Find the largest & smallest element) Use pointers to write a function that finds the largest element in an array of integers. Also, write

11.5 (Find the largest & smallest element)

Use pointers to write a function that finds the largest element in an array of integers. Also, write another function that finds the smallest element in an array of integers. Use {6, 7, 9, 10, 15, 3, 99, -21} to test both functions.

NOTE: Solve using pointers arguments in a function call, not using Array functions.

Language is C++

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!