1 2 3 4 5 6 7 8 9 10 11
void foo(double bar[], double *zp, int n) { int i, j; i = 0; for(j = 0; j < n; j++) { i += j+1; bar[i] *= (1.0 + *zp); } }