Signed Integers Are Asymmetrical

borretti.me
signed-integers-are-asymmetrical

What’s wrong with this code? int8_t absolute(int8_t x) { if (x >= 0) { return x; } else { return -x; } } Seems straightforward enough. Let’s try it with some representative numbers: #include #include int8_t absolute(int8_t x) { if … Read more

Signed Char Lotte

nickdrozd.github.io

“signed char lotte” is a computer program written by Brian Westley and the winner of the “Best Layout” award in the 1990 International Obfuscated C Code Contest. The cleverness of the text is staggering. Superficially it reads as an epistolary … Read more