Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ffcccc
enum {MAX = 100};

int helper(int i) {
  /* perform some computation based on i */
}

int main(void) {
  int i;
  int out[MAX];

  for (i = 0; i < MAX; i++) {
    out[i] = helper(i);
  }
  /* ... */
  return 0;
}

...

Code Block
bgColor#ccccff
enum {MAX = 100};

static int helper(int i) {
  /* perform some computation based on i */
}

int main(void) {
  int i;
  int out[MAX];

  for (i = 0; i < MAX; i++) {
    out[i] = helper(i);
  }
  /* ... */
  return 0;
}

...