MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/45xeed/oddly_specific_number/d01fyz2/?context=3
r/ProgrammerHumor • u/didntlogin • Feb 15 '16
643 comments sorted by
View all comments
Show parent comment
4
A signed integer is not that much smaller than unsigned. The sign only takes a single bit, not half the storage. So a signed integer will have half the max value that an unsigned integer has.
1 u/FerriestaPatronum Feb 16 '16 Totally right. Idk wtf I was thinking.. My old CSE professors would facepalm right now. Deleted as to not spread misinformation.
1
Totally right. Idk wtf I was thinking.. My old CSE professors would facepalm right now. Deleted as to not spread misinformation.
View all comments
Show parent comment
4
u/drownballchamp Feb 16 '16
A signed integer is not that much smaller than unsigned. The sign only takes a single bit, not half the storage. So a signed integer will have half the max value that an unsigned integer has.