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: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-12 15:11

I think this would be undefined behavior because you're flushing stdout twice. There could be crash because you're attempting to free() more memory that what you allocate.

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