May 19, 2013 at 2:51pm
because your finction declared as accepting a single int its first pareameter.
change int
to int[]
May 19, 2013 at 2:53pm
Your forward declaration at line 3 does not agree with your function definition at line 17. They must agree.
You have told the compiler that avg takes an int as the first argument, but you're trying to pass it an int array.
May 19, 2013 at 2:55pm
Also you have similar error in 3rd argument declaratin.