Obfuscated C Contest

Obfuscated C Contest

(programming)The International Obfuscated C Code Contest(IOCCC) is an annual contest run since 1984 over Usenet byLandon Curt Noll and friends. The overall winner is whoeverproduces the most unreadable, creative, and bizarre (butworking) C program. Various other prizes are awarded at thejudges' whim. C's terse syntax and macro-preprocessorfacilities give contestants a lot of maneuvering room. Thewinning programs often manage to be simultaneously funny,breathtaking works of art and horrible examples of how *not*to code in C.

This relatively short and sweet entry might help convey theflavour of obfuscated C:

/** HELLO WORLD program* by Jack Applin and Robert Heckendorn, 1985*/main(v,c)char**c;for

Here's another good one:

/** Program to compute an approximation of pi* by Brian Westley, 1988*/

#define _ -F<00||--F-OO--;int F=00,OO=00;main()F_OOF_OO() _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_

Note that this program works by computing its own area. Formore digits, write a bigger program. See also hello, world.