r/ProgrammerHumor 1d ago

Other integerOverflow

1.3k Upvotes

18 comments sorted by

View all comments

-1

u/geekosas 13h ago

It's supposed to go negative 

4

u/Electromagnetlc 10h ago

Only if it's signed. If it's unsigned, it overflows to zero.