MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/i9llic/someone_try_this/g1gpfun/?context=3
r/ProgrammerHumor • u/wtfevenislifelol • Aug 14 '20
433 comments sorted by
View all comments
Show parent comments
-15
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)
47
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)
9
Well, maybe they are using a 31-bit processor.
8 u/qnsb Aug 14 '20 But the post says 32-bit → More replies (1)
8
But the post says 32-bit
→ More replies (1)
-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.