Extra Credit 2

Due: November 9, 2015
Points: 80

This program won the International Obfuscated C Code Contest in 1984. Note it is not ANSI C. But it compiles and runs on the computers in the CSIF.

Your job: comment this program so it is clear exactly how each step works.

Warning: be prepared to spend quite a bit of time on it!


int i;main(){for(;i["]<i;++i){–i;}"];read(’-’-’-’,i+++"hell\
o, world!\n",’/’/’/’));}read(j,i,p){write(j/p+p,i—j,i/i);}

Here is a hint, also included with the IOCCC submission. It is reprinted exactly as in the file.

Dishonorable mention:

    Anonymous

The author was too embarrassed that he/she could write such trash, so I
promised to protect their identity. I will say that the author of this
program has a well known connection with the C programming language.

This program is a unique variation on the age old "Hello, world"
program. What reads like a read may be written like a write!

Copyright (c) 1984, Landon Curt Noll.
All Rights Reserved. Permission for personal, educational or non-profit use is
granted provided this this copyright and notice are included in its entirety
and remains unaltered. All other uses must receive prior permission in writing
from both Landon Curt Noll and Larry Bassel.


You can also obtain a PDF version of this. Version of October 28, 2015 at 9:54PM