Obfuscated code - this is as good as it gets and was a prize winner in the obfuscated code contest. Personally, I see obfuscated code every day written by cowboy programmers who worked developing our monstrous legacy system long ago.
This code rewrites itself into more C code. So, you get to compile & run it four times to see the output. The output is actual C code each time. All 4 compilations produce warnings.
This one is called zan.c You need to view each code file using fixed
width fonts like Courier to actually see what the code is doing. Proportional fonts distort it too much - IMO.
Hint: it produces characters embedded in the code, and if you're a fan of a certain genre of comic they will mean something to you.
What does the code do? I compiled this on FreeBSD 4.6 and gcc 2.95.3 and it just printed itself (which is a terrific thing in itself, imo). But I didn't get that bit about compiling it 4 times. I'll try it on my Sol 10 box at work and get back later.