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

Method Min

Arrays/18_Menu_Based_problem.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 return max;
152}
153int Array::Min()
154{
155 int min=A[0];
156 int i;
157 for(i=1;i<length;i++)
158 {
159 if(A[i]<min)
160 min=A[i];
161 }
162 return min;
163}
164int Array::Sum()
165{
166 int s=0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected