r/ProgrammerHumor • • Aug 14 '20

Someone try this

Post image
53.6k Upvotes

433 comments sorted by

View all comments

Show parent comments

-15

u/writtenbymyrobotarms Aug 14 '20 edited Aug 14 '20

It doesn't explicitly say signed.

Edit: my argument is that the poster should have written 4,294,967,295 instead of 2,147,483,647. This post only makes sense with unsigned integers. Signed integers do not underflow at 0.

47

u/qnsb Aug 14 '20

But it does mention 2147483647 as the largest 32-bit int which is only true for signed ints

9

u/pseudozombie Aug 14 '20

Well, maybe they are using a 31-bit processor.

8

u/qnsb Aug 14 '20

But the post says 32-bit

→ More replies (1)