Question: How can I write a function void min_max(int *parry, int n)which displays the minimum and maximum numbers in an array of n integers. Call this
How can I write a function "void min_max(int *parry, int n)"which displays the minimum and maximum numbers in an array of n integers. Call this function in main with user input. For example,declare an array of 8 integers, ask the user to enter the 8 integers,and call the min_max function to display the smallest and largest numbers in the array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
