📜 ⬆️ ⬇️

The results of the 20th international competition of incomprehensible C code

The organizers of IOCCC (International Competition for the Most Unclear Code C) pressed the “turbo” button. If the results of the last contest were published four years after, then now only two months have passed - and here they are .

Ready-made programs of less than 4,096 bytes in size can participate in the competition, with the number of significant characters, without taking into account spaces, tabs and signs; () should not exceed 2048. The task of the competition is to “check compilers for stress, demonstrate the subtleties of the C programming language and the importance of adhering to the programming style (doing the opposite)”.

The title of winner (Best of Show) and the title of “most reduced” (most shrinkable) won the four-level downsampler akari ( Makefile , akari.c ). The program is able to reduce different graphics, including ASCII graphics. Since its source code is also formatted as ASCII graphics, it can also reduce its source code. The result is another valid C program that can process text. And this is also not the end. After processing the code a second time with the help of a new program, a third functional program is obtained (here the gcc compiler is already starting to issue some warnings, but it will still make the executable file).

Other winners:

')

Source: https://habr.com/ru/post/143072/


All Articles