When I call the following function:

I get errors. I know something is wrong, but I cant put my finger on it.Code:void avg_sum (float a [10], int n=9 , float *avg, float *sum) { int i; float s, v: sum = &s; avg = &v; for (i = 0; i < n; i++) { s += a [i]; } avg = sum/n; }