Menu
Edison used 'bug' before computers existed.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Signed integer Memes
Posts tagged with Signed integer
Maximum Punishment: Integer Overflow Edition
Programming
Csharp
C++
Algorithms
1 year ago
342.6K views
0 shares
When you ask for a 32-bit integer but the judge gives you a signed one. That ~32,768 years sentence is suspiciously close to 2^15, which is exactly what happens when you overflow a signed 16-bit integer. The criminal probably wanted an unsigned int that goes up to 65,535, but instead got the negative range too. Classic rookie mistake. Should've specified the data type in the plea bargain.
Today's picks
UPLIFT DESK Bamboo (48 x 30 inch) Standing Desk 2-Leg V3 Adjustable Stand Up C-Frame (White), Advanced Keypad, Wire Grommets, Wire Tray, Rocker Board
Affiliate
$818.00
NordVPN
Sponsored
VPN
Software developments step 0: search for existing solutions
Programming
90.0K views
4 years ago