APPFS
Advanced practical programming for scientists
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ex4_rec4.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <alloca.h>
3 
4 void f(int i)
5 {
6  int* a = alloca(100 * sizeof(*a));
7 
8  a[1] = i + 1;
9 
10  if (i % 1000 == 0) {
11  printf("%d ", i / 1000);
12  fflush(stdout);
13  }
14  f(a[1]);
15 }
16 
17 int main() { f(1); }
int main()
Definition: ex4_rec4.c:17
void f(int i)
Definition: ex4_rec4.c:4
int i
Definition: ex4_struct.c:4