I am trying to make some functions that take an array ofnnumbers and do certain things to them (like getting the sum, calculate statistical deviation, etc...)

Right now, I have:

But that isn't working. What's the problem?Code:int n; int main(void) { printf("How many numbers?:"); scanf("%f", n); float numbers[n]; ... ... ... sum=sum(numbers[n]); printf("Sum is:%f", sum); } float sum(float numbers[n]) { int x; float sum; for(x=0; x==n; ++x) { sum=numbers[x]+sum; } return sum; }