FACTOID # 134: The total area of Australia’s coral reefs is greater than the total area of any of 130 individual countries, including Slovakia, the Dominican Republic, Kuwait, Singapore, and Rwanda.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RELATED ARTICLES
People who viewed "IOCCC" also viewed:
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > IOCCC

The International Obfuscated C Code Contest (abbr. IOCCC) is a programming contest for the most creatively obfuscated C code held annually since 1984 (with the exception of 1997, 1999, 2002 and 2003). There are many winning entries each year, and each entry gets a category like "Worst Abuse of the C Preprocessor" or "Most Erratic Behavior".


The IOCCC was started by Landon Curt Noll and Larry Bassel. They were talking together about the horrible code it was their jobs to maintain. They decided to hold a contest for the worst possible C code. Within the code size limit of only a few kilobytes, the contestants manage to do amazing things - 2004 winner was in fact an operating system!


Some quotes from recent entries include,

  • To keep things simple, I have avoided the C preprocessor and tricky statements such as "if", "for", "do", "while", "switch", and "goto".
  • We still aren't sure whether or not this is a useful program, but it's the first atomic fission we've seen in the IOCCC.
  • Why not use the program to hide another program in the program? It must have seemed reasonable at the time.
  • The program implements an 11-bit ALU in the pre-processor.
  • I found that calculating prime numbers up to 1024 makes the program include itself over 6.8 million times.


An example entry would be [1] (http://www0.us.ioccc.org/years.html#1988_westley):

 #define _ -F<00||--F-OO--; int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ } 

This program calculates pi by looking at its own area; a more accurate value can be received by using a bigger program.


Some ways in which contributions are notable include:

  • The appearance of the source code, which may resemble images, text, etc.
  • Preprocessor redefinitions to make code harder to read
  • Self-modifying code
  • Worst abuse of the rules. In several years, an entry was submitted that was so patently absurd that it required a new definition of some of the rules for the next year. This, of course, is a high honor. An example would be the world's shortest self-reproducing program... the entry was a program zero bytes in length, that if run, printed zero bytes to the screen (this requires some creative use of the makefile to get it right).

Several of the past entries are known to cause some compilers (most notably the otherwise very stable Visual Studio) to crash messily.


External link

  • IOCCC web site (http://www.ioccc.org)

  Results from FactBites:
 
IOCCC Flight Simulator (1191 words)
The IOCCC Flight Simulator was the winning entry in the 1998 International Obfuscated C Code Contest.
IOCCC stands for ``International Obfuscated C Code Contest.'' It is an quasi-annual contest to see who can write the most unreadable, unintelligible, unmanagable, but legal C program.
IOCCC Flight Simulator source code is in the public domain; there are no copyright restrictions on it whatsoever.
The International Obfuscated C Code Contest (75 words)
IOCCC) is a programming contest for the most creatively obfuscated C code held annually since 1984 (with the exception of 1997, 1999, and 2002).
One notable IOCCC winner (in 1986 and 1987) is Larry Wall.
His achievements in IOCCC might be or might be not related to his design of Perl.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.