4 ms·
This task was a staple of early years of the IOCCC: https://www.ioccc.org/1992/lush.c https://www.ioccc.org/1992/lush.c https://www.ioccc.org/1989/jar.1.c htt
by kragen 7y ago
This task was a staple of early years of the IOCCC:
https://www.ioccc.org/1992/lush.c https://www.ioccc.org/1992/lush.c
https://www.ioccc.org/1989/jar.1.c https://www.ioccc.org/1989/jar.1.c (cf. https://www.ioccc.org/1989/jar.1.hint https://www.ioccc.org/1989/jar.1.hint)
https://www.ioccc.org/1986/applin/applin.c https://www.ioccc.org/1986/applin/applin.c
https://www.ioccc.org/1986/holloway/holloway.c https://www.ioccc.org/1986/holloway/holloway.c
https://www.ioccc.org/1985/applin/applin.c https://www.ioccc.org/1985/applin/applin.c
https://www.ioccc.org/1984/anonymous/anonymous.c https://www.ioccc.org/1984/anonymous/anonymous.c
And this version, though too large to enter into the IOCCC, is not only valid C, but is additionally valid as COBOL, Pascal, Fortran, PostScript, a shell script, an MS-DOS .COM file, and Perl 5: https://ideology.com.au/polyglot/ https://ideology.com.au/polyglot/
You may not like it, but...
P.S. if you liked this comment, you'll love https://news.ycombinator.com/item?id=23183383 https://news.ycombinator.com/item?id=23183383!
- oconnor663 7y ago> 4. Keep the blank lines at the start of the program. They are important. lol
- prox 7y agoI lol’ed with > This program is (supposedly) the smallest C program able to print "Hello world.". The compilation itself produces the desired printout and the program need not be actually run.