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

Function Avg

Arrays/31_Menu_for_Array.c:308–311  ·  view source on GitHub ↗

Average Function

Source from the content-addressed store, hash-verified

306
307//Average Function
308float Avg(struct array arr)
309{
310 return (float)Sum(arr)/arr.length;
311}
312
313//Reverse by copying the content to second array in reverse order and again copy to the initial array
314void Rev1(struct array *arr)

Callers 1

mainFunction · 0.70

Calls 1

SumFunction · 0.70

Tested by

no test coverage detected