[ create a new paste ] login | about

Link: http://codepad.org/O3QFFd5D    [ raw code | output | fork ]

C, pasted on Nov 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<stdio.h>

void fkt (void)
{
  static int c = 1;
  int a = 12;
  printf("aufruf %d, adresse von a: %08x\n", c, (int)&a);
  c++;
  if (c<5) fkt();
}

int main(void)
{
    fkt();
    return 0;
}


Output:
1
2
3
4
aufruf 1, adresse von a: ff821040
aufruf 2, adresse von a: ff821010
aufruf 3, adresse von a: ff820fe0
aufruf 4, adresse von a: ff820fb0


Create a new paste based on this one


Comments: