How integers are stored in memory using two’s complement

src: https://www.log2base2.com/storage/how-integers-are-stored-in-memory.html

Negative Integers

One’s complement

Two’s complement

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store