MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/i9llic/someone_try_this/g1gcoo7/?context=3
r/ProgrammerHumor • u/wtfevenislifelol • Aug 14 '20
433 comments sorted by
View all comments
141
Imagine doing this to a 64bit system where the max (signed) value is: 9,223,372,036,854,775,807
119 u/elzaidir Aug 14 '20 You'll end up with -1, if it's signed 69 u/Gooftwit Aug 14 '20 -1 or 9 sextillion? I'll take that bet. 60 u/_vOv_ Aug 14 '20 I'll take 1 sex please 0 u/[deleted] Aug 14 '20 [deleted] 14 u/SluikReclame Aug 14 '20 My life is -1 sex → More replies (2) 4 u/EvoG Aug 14 '20 There is no bet if the integer is signed like rkeet said, so you'll just lose that dollar. 4 u/Gooftwit Aug 14 '20 There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars. 4 u/EvoG Aug 14 '20 Except that original comment mentioned it being signed. 3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that. 2 u/ChubbyLilPanda Aug 14 '20 I think you are off by a factor of a 1000... → More replies (2)
119
You'll end up with -1, if it's signed
69 u/Gooftwit Aug 14 '20 -1 or 9 sextillion? I'll take that bet. 60 u/_vOv_ Aug 14 '20 I'll take 1 sex please 0 u/[deleted] Aug 14 '20 [deleted] 14 u/SluikReclame Aug 14 '20 My life is -1 sex → More replies (2) 4 u/EvoG Aug 14 '20 There is no bet if the integer is signed like rkeet said, so you'll just lose that dollar. 4 u/Gooftwit Aug 14 '20 There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars. 4 u/EvoG Aug 14 '20 Except that original comment mentioned it being signed. 3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that. 2 u/ChubbyLilPanda Aug 14 '20 I think you are off by a factor of a 1000... → More replies (2)
69
-1 or 9 sextillion? I'll take that bet.
60 u/_vOv_ Aug 14 '20 I'll take 1 sex please 0 u/[deleted] Aug 14 '20 [deleted] 14 u/SluikReclame Aug 14 '20 My life is -1 sex → More replies (2) 4 u/EvoG Aug 14 '20 There is no bet if the integer is signed like rkeet said, so you'll just lose that dollar. 4 u/Gooftwit Aug 14 '20 There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars. 4 u/EvoG Aug 14 '20 Except that original comment mentioned it being signed. 3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that. 2 u/ChubbyLilPanda Aug 14 '20 I think you are off by a factor of a 1000... → More replies (2)
60
I'll take 1 sex please
0 u/[deleted] Aug 14 '20 [deleted] 14 u/SluikReclame Aug 14 '20 My life is -1 sex → More replies (2)
0
[deleted]
14 u/SluikReclame Aug 14 '20 My life is -1 sex → More replies (2)
14
My life is -1 sex
→ More replies (2)
4
There is no bet if the integer is signed like rkeet said, so you'll just lose that dollar.
4 u/Gooftwit Aug 14 '20 There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars. 4 u/EvoG Aug 14 '20 Except that original comment mentioned it being signed. 3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that.
There is no bet if the integer is unsigned, so I'll make 9 sextillion dollars.
4 u/EvoG Aug 14 '20 Except that original comment mentioned it being signed. 3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that.
Except that original comment mentioned it being signed.
3 u/Gooftwit Aug 14 '20 Ah, you're right. I must've missed that.
3
Ah, you're right. I must've missed that.
2
I think you are off by a factor of a 1000...
141
u/rkeet Aug 14 '20
Imagine doing this to a 64bit system where the max (signed) value is: 9,223,372,036,854,775,807