7 return n?X[0]+
sumar(X+1,n-1):0;
21 printf(
"Ingrese el numero de elementos: ");
25 printf(
"Ingrese el numero de muestras: ");
28 A = (
float*)malloc(n*
sizeof(
float));
33 A[i] = (1.0*rand())/RAND_MAX;
34 printf(
"A[%d] = %f\t%p\n", i+1, A[i], A+i);
37 printf(
"u(%d) = %f\n", i+1,
media(A+i, m));
float sumar(float *X, int n)
float media(float *X, int n)