News for hackers. Stuff that matters.
Re:Who Can Name the Bigger Number? by tel on Thursday July 22, 2010 @10:35PM (#1540185)
I find it hilarious that three people thought to return the highest possible number by underflowing unsigned ints (that are being treated as arbitrarily large ints). It's a funny hack even if it doesn't teach you anything like Loader's does.
Re:Who Can Name the Bigger Number? by mseebach on Friday July 23, 2010 @06:44AM (#1540848)
I don't see how that is relevant when the problem assumes an arbitrarily large int-type. It's trivial to return the largest possible value (INT_MAX) for any fixed-size int-type, but a such does not exist.

Basically, many posters are missing the point that it's a mathematics challenge, not a C-challenge, which is excusable since it's posted in a C-group.

Re:Who Can Name the Bigger Number? by tel on Sunday July 25, 2010 @01:50PM (#1545954)
Exactly, which I find hilarious.
Re:Who Can Name the Bigger Number? by amalcon on Thursday July 22, 2010 @11:19PM (#1540235)
My first thought was along those lines: (int)((unsigned int)-1 >> 1)==INT_MAX