Question: In this homework you just need to implement one function: / / given an array a with size n , return the maximum number in

In this homework you just need to implement one function:
// given an array a with size n, return the maximum number in the array. // example: // Input: a=[59,23,1,2,3],n=5// return: 59 int findmax(int a[],int n){
}
You can write a main function to test your code but your submission should not include main() function because it will not compile correctly codegrade. The name of your file must be homework1.cpp.
NOTE: You can't rename the function. Just copy the function definition above and fill in the code inside the curly brackets.
 In this homework you just need to implement one function: //

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!