Can anyone help me out with this question? All my mates are getting diff answers so idek anymore.

If a variable counting seconds is stored in a signed long 32-bit integer, how many days will it take until that integer overflows? (to one decimal place).
2 Replies
CaramelCorn
CaramelCorn2y ago
max signed 32-bit int value is 2147483647, there are 86400 seconds in a day to reach overflow we need to hit 214748368 so 214748368/86400 = 24855.1 days
smb
smbOP2y ago
That’s what i got! Thank you so much!
Want results from more Discord servers?
Add your server