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