APPFS
Advanced practical programming for scientists
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
ex4_rec4.c File Reference
#include <stdio.h>
#include <alloca.h>

Go to the source code of this file.

Functions

void f (int i)
 
int main ()
 

Function Documentation

void f ( int  i)

Definition at line 4 of file ex4_rec4.c.

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 }
void f(int i)
Definition: ex4_rec4.c:4
int i
Definition: ex4_struct.c:4
int main ( )

Definition at line 17 of file ex4_rec4.c.

17 { f(1); }
void f(int i)
Definition: ex4_rec4.c:4