1 # International Obfuscated C Code Contest
3 The International Obfuscated C Code Contest (IOCCC for short) is an annual online contest in making the most creatively [obfuscated](obfuscation.md) programs in [C](c.md). It's kind of a "just for [fun](fun.md)" thing but similarly to [esoteric languages](esolang.md) there's an element of art and clever hacking that carries a great value. While the [productivity freaks](productivity_cult.md) will argue this is just a waste of time, the true programmer appreciates the depth of knowledge and creative thinking needed to develop a beautifully obfuscated program. The contest runs since 1984 and was started by Landon Curt Noll and Larry Bassel.
5 Unfortunately some [shit](shit.md) is flying around IOCCC too, for example confusing licensing -- having a [CC-BY-SA](cc_by_sa.md) license in website footer and explicitly prohibiting commercial use in the text, WTF? Also the team started to use [Microshit](microsoft.md)'s [GitHub](github.md). They also allow latest [capitalist](capitalist_software.md) C standards, but hey, this is a contest focused on ugly C, so perhaps it makes sense.
7 Hacking the rules of the contest is also encouraged and there is an extra award for "worst abuse of the rules".
9 Some common ideas employed in the programs include:
11 - formatting source code as [ASCII art](ascii_art.md)
12 - misleading identifiers and comments
13 - extreme [macro](macro.md)/[preprocessor](preprocessor.md) abuse
14 - abuse of compiler flags
15 - different behavior under different C standards
16 - doing simple things the hard way, e.g. by avoiding loops
17 - including weird files like `/dev/tty` or recursively including itself
18 - [code golfing](code_golf.md)
19 - weird stuff like the main function [recursion](recursion.md) or even using it as a signal handler :)
22 And let us also mention a few winning entries:
24 - program whose source code is taken from its file name (using `__FILE__`)
25 - [ray tracer](ray_tracing.md) in < 30 LOC formatted as ASCII art
26 - operating system with multi-tasking, GUI and filesystem support
27 - neural [machine learning](machine_learning.md) on text in < 4KB
28 - program printing "hello world" with error messages during compilation
29 - [X11](x11.md) Minecraft-like game
30 - [web browser](web_browser.md)
31 - self-replicating programs
36 - [NaNoGenMo](nanogenmo.md)
37 - [SIGBOVIK](sigbovik.md)
38 - C [compiler bombs](compiler_bomb.md)