cryowizard (
cryowizard) wrote2006-09-06 03:39 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Obfuscated C contest
This is the most fucked up piece of code I have ever seen. And it actually works!
Fascinating, in a way.
http://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest
All ye C/C++ gurus feel free to check it out. We pasted the code from the URL into a blank C++ project, renamed the source as .C and it compiled, and we were able to place a breakpoint inside that circle, as the picture suggests.

It does give the value of Pi as 0.250 but the URL suggests that a bigger circle gives better results ;)
Fascinating, in a way.
http://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest
All ye C/C++ gurus feel free to check it out. We pasted the code from the URL into a blank C++ project, renamed the source as .C and it compiled, and we were able to place a breakpoint inside that circle, as the picture suggests.

It does give the value of Pi as 0.250 but the URL suggests that a bigger circle gives better results ;)
doorssite
(Anonymous) 2008-01-31 04:26 am (UTC)(link)http://deswa.narod.ru/up.html