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

Function Min

Arrays/31_Menu_for_Array.c:283–294  ·  view source on GitHub ↗

Min Function

Source from the content-addressed store, hash-verified

281
282//Min Function
283void Min(struct array arr)
284{
285 int i,min=arr.A[0];
286 for(i=0;i<arr.length;i++)
287 {
288 if(arr.A[i]<min)
289 {
290 min=arr.A[i];
291 }
292 }
293 printf("The minimum value in the array is: %d\n",min);
294}
295
296//Sum Function
297int Sum(struct array arr)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected