|
|
Obfuscated C Contest
<programming> The International Obfuscated C Code Contest
(IOCCC) is an annual contest run since 1984 over Usenet by
Landon Curt Noll and friends. The overall winner is whoever
produces the most unreadable, creative, and bizarre (but
working) C program. Various other prizes are awarded at the
judges' whim. C's terse syntax and macro-preprocessor
facilities give contestants a lot of maneuvering room. The
winning 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 the
flavour of obfuscated C:
/*
* HELLO WORLD program
* by Jack Applin and Robert Heckendorn, 1985
*/
main(v,c)char**c;{for(v[c++]="Hello, world!\n)";
(!!c)[*c]&&(v--||--c&&execlp(*c,*c,c[!!c]+!!c,!c));
**c=!c)write(!!*c,*c,!!**c);}
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_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
_-_-_-_
_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_
_-_-_-_
}
Note that this program works by computing its own area. For
more digits, write a bigger program. See also hello, world.
[Jargon File]
Try this search on OneLook / Google
Nearby terms:
Oberon-2 « Oberon-V « OBEX « Obfuscated C Contest » obi-wan error » OBJ » OBJ0
This article was derived from the Free Online Dictionary of Computers and is available under ther terms of the GNU Free Documentation License.
Columbus and the Age of DiscoveryColumbus and the Age of Discovery This informative CD-ROM explains what Europeans knew of world geography before his voyage to the New World, beginning with the discoveries made by Alexander the Great and other ancient explorers. Windows 95/98/ME/NT/2000/XP and Mac More ...
Knowledge Munchers DeluxeKnowledge Munchers Deluxe Geography, history, music and more! You'll find it all inKnowledge Munchers Deluxe where kids wrap their minds aroundtasty knowledge morsels. It's a fast-paced, action-packed 3-Dworld. And it's downright addictive! Grades 3-6. Windows 95/98/ME/2000/XP and MAC More ...
USB Rechargeable Battery Charger - 2 for $14.99USB Rechargeable Battery Charger - 2 for $14.99 ** USB Rechargeable Battery Charger - 2 for $14.99 **For use with AA and AAA NiMH and NiCD rechargeablebatteries (1800mA and 700mA),.Just connect the USB cable toa computer or laptop to start charging.General Features:- Charge two (2) or four (4) batteries at one time- Works with AA and/or AAA batteries- Works with NiMH or NiCD rechargeable batteries- Connects to your USB port on home PC or notebook- Charge LEDs- Full LEDs- DC 5v portCharging times:- AA batteries 1800mA approximately 285 min- AAA batteries 700mA approximately 90 minPackage Includes:- USB digital charger - Four (4) foot USB power tapRegulatory Marks:- CEPart Number: UTB-- > UPC: 8 002829 199882 Compatibility/Requirements/Disclosures:** Requirements* NiMH or NiCD rechargeable AA or AAA batteries* Available USB port More ...
VirtualCamera 0.9.0.0530VirtualCamera is a virtual software camera that uses your pictures and movies
Car Cruisin' Superhits (Music CD)Car Cruisin' Superhits (Music CD) Get out the Lead-Sled and crank up the tunes! These are some of the best cruising tunes from the 50s and 60s gathered up on one CD, so get out on the highway and enjoy the drive. With great songs like, Get Up Off That Thing, Soul Man, Red Ferrari, and Caravan you'll be one cool cat in your hot rod, Crusin' to the Superhits of the 50s and 60s. More ...
Virtual Reality Head Mounted LCD DisplayVirtual Reality Head Mounted LCD Display ** LCD Head Mounted Display **Virtual Reality Widescreen from your TV, VCR, DVD and Game Console! Recreate the feeling of the theatre with this head mounted display. This display is equal to 36-inch screen at 2-meters and offers clear and exquisite pictures. The 2.1-track Dolby Surrounding stereo earphones help to recreate the theatre experience. It can be easily fixed on the head, so you can enjoy movies or games regardless of the posture taken by the user. The lithium battery (LP1100) can supply power for 8 consecutive hours, for convenient use when traveling.General Features:- Display is equal to 36-inch picture at 2 meters away- 800 x 225 (180 k) full color display- 26-degree viewing angle- NTSC/PAL video signal- Quadruple core AV mole terminal- Double-channel stereo headphones- Adjustable head-strap- DC 9V stable voltage- Rechargeable lithium battery unit- Only 6.3-ouncesAdjustment function: - Variable volume- Picture contrast - Picture brightnessRegulatory Approvals:- FCC- CEPackage Includes:- Headset LCD Virtual Display- Eye cups- Rechargeable lithium battery unit- A/V cables- Scart plug to RCA adapter - AC adapter (100 ~ 240 V, 50/60 Hz)- User guide Compatibility/Requirements/Disclosures: ** Requirements *** Compatible video source* Power outlet (for recharging battery) More ...
|