Question: use c to code 3/ Write a c code that will read 10 numbers into an array, pass it to the function (max_min), and print
use c to code
3/ Write a c code that will read 10 numbers into an array, pass it to the function (max_min), and print the Largest and the Smallest elements. A sample run of the codes can be as Enter 10 numbers: 34 82 49 102 7 94 23 11 50 31 Largest: 102 Smallest: 7 Use pointer concept and use the following function prototype: void max_min(int *a, int n, int *max, int *min)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
