Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Someone
on Jan 27, 2015
|
parent
|
context
|
favorite
| on:
Main is usually a function – when is it not?
See also
http://www.ioccc.org/1984/mullender.c
(30 years ago). Hint at
http://www.ioccc.org/1984/mullender.hint
sirclueless
on Jan 27, 2015
[–]
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?
Someone
on Jan 27, 2015
|
parent
[–]
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: