Menu
COBOL: Powering your bank since before you were born.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
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
260.9K 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 V3 2-Leg Black Laminate Standing Desk – Adjustable Height, Advanced 1-Touch Memory Keypad, Under Desk Cable Management, Wire Grommets (Black C-Frame, 42 x 24 inch)
Affiliate
$569.00
The Quickest Way To Learn A Language
Python
238.1K views
8 months ago
Monkey's Paw Marketing For Crowdstrike
Security
294.9K views
1 year ago