Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ITT e-peen

Name: Anonymous 2008-01-20 21:52

How many times can you open a recursive process before you segfault?

#include <stdio.h>

int i;

void recurse()
{
  i++;
  printf("%d\n", i);
  recurse();
}

int main()
{
  i = 0;
  recurse();
}


I got 523506.

Name: Anonymous 2008-01-21 9:38

>>8
Bullshit, you fuckhead.  The odds are at most 1 in 2^32 (probably far less) that the signed int will be in exactly that state when it fails. l2wrap.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List