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

>>65
The point wasn't the turing machine, but that you may have different results for every run, there isn't a well-defined entry and exit point, which is a requirement for determinism, therefore the program is ultimately indeterministic.

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