Question: Write function max(int a[ ],int n) that receives an array ofinteger and its size, it returns the maximum number in that array.In the main function,
Write function max(int a[ ],int n) that receives an array ofinteger and its size, it returns the maximum number in that array.In the main function, ask the user to enter 20 values in an arraycalled numbers, then pass it to the function max(), and display thereturned value.
in c++ language
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
solution include using namespace std int maxint a int n int m a0 m holds ... View full answer
Get step-by-step solutions from verified subject matter experts
