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:24

>>76
I'm actually a Java Programmer, but anyways.....

Unless things have changes, fflush() itself is a (circular) linked list. When this function gets called, it will check against the "base". If the "base" is NULL, it will call malloc(). Otherwise it will do some kind of write().

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