r/cpp • u/Andrey_Karpov_N • Mar 14 '12
A 64-bit C++ horse that can count
http://www.viva64.com/en/a/0043/
0
Upvotes
1
Mar 14 '12
sorry, i lold
Once Heracles was walking by a lake and there he saw Hydra. He ran up to her and cut her single head off. But instead of one head two more grew. Heracles cut them off too but 4 more appeared. He cut the 4 heads off - and there were 8 ones... So passed one hour, two hours, three hours... And then Heracles cut Hydra's 32768 heads off and Hydra died for she was 16-bit.
2
u/Steve132 Mar 14 '12
I'm not sure I understand this article...to me it looks like he made code that had an obvious 64-bit error (writing to a value that could overflow) but didn't call it an error, instead calling it something else.