Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



Not having access to a PDP-11 (maybe this works on an emulator?) is it cheating to ask what the output of this program is?


According to http://www.ioccc.org/faq.html, it is equivalent to

  main(){
    int i=512;
    do
      write(1,"  :-)\b\b\b\b",9),usleep(i);
    while(--i);
  }
So, it moves a smiley on the screen, at increasing speed.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: