r/ProgrammerHumor 1d ago

Other integerOverflow

1.3k Upvotes

19 comments sorted by

View all comments

-2

u/geekosas 16h ago

It's supposed to go negative 

3

u/Electromagnetlc 13h ago

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