MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / max_arr

Function max_arr

CPP/array-2d/max_array.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include<bits/stdc++.h>
21using namespace std;
22int max_arr(int arr[],int n){
23 int max=arr[0];
24
25 for (int i = 1; i < n; ++i)
26 {
27 if (max<arr[i])
28 {
29 max=arr[i];
30 }
31
32 }
33 cout<<max<<endl;
34
35 return 0 ;
36}
37void initial(){
38#ifndef ONLINE_JUDGE
39freopen("input.txt", "r", stdin);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected