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

>>104
n1124 §7.19.5.3
If stream points to an output stream [...] the fflush function causes any unwritten data for that stream to be delivered to the host environment to be written to the file

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