How are stored integers in memory (two’s complement)

Base 2
5 in memory (4 bytes)
Positive number (+5)
Negative number (-5)
Positive number 5
Negative number -5

--

--

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
Thibaut Bernard

Thibaut Bernard

Software engineer student at HolbertonSchool 👉https://github.com/ThibautBernard 👉https://twitter.com/__ThibautDev