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

1 Expert Approved Answer
Step: 1 Unlock

solution include using namespace std int maxint a int n int m a0 m holds ... View full answer

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 Electrical Engineering Questions!