Question: Write a function, declared as below, which is passed an array of length n , and returns a pointer to the array s largest element.

Write a function, declared as below, which is passed an array of length n, and returns a pointer to the arrays largest element.
int *find_largest(int a[], size_t n);
Use it in main as follows: define a test array and, using find largest, increment the value of the largest element of the array. Finally, print all the elements of 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!