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

For you

Name: Anonymous 2012-01-12 14:20

What is the output of this program and why?

#include <stdio.h>

void f(void) {
  printf("hax my anus\n");
  fflush(stdout);
  f();
}

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

Name: Anonymous 2012-01-12 15:20

HERP DERP THE PROGRAM IS UNDEFINED SINCE IT RELIES ON UNDEFINED BEHAVIOR AND IT ONLY RUNS THAT WAY IF COMPILED WITH GCC

I am of course referring to the Segmentation fault output the program ultimately produces on a x86

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