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

Method Max

Arrays/18_Menu_Based_problem.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 A[index]=x;
141}
142int Array::Max()
143{
144 int max=A[0];
145 int i;
146 for(i=1;i<length;i++)
147 {
148 if(A[i]>max)
149 max=A[i];
150 }
151 return max;
152}
153int Array::Min()
154{
155 int min=A[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected