...
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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;
}
|
...