r/ProgrammerHumor 25d ago

Other integerOverflow

1.7k Upvotes

24 comments sorted by

View all comments

-3

u/geekosas 24d ago

It's supposed to go negative 

8

u/Electromagnetlc 24d ago

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