Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on C-style: My favorite C programming practices. Parent comment
What? Of course you can. If you want to add ints a and b:
if (b >= 0 ? a > INT_MAX - b : a < INT_MIN - b) printf("overflow\n");
Now do it for multiplication.
What? Of course you can. If you want to add ints a and b: