Skip to main content

Section 5.1 Digital Representation of Integers

Previously, we learned that in C, the computer thinks that 5/2=2. But why is this the case?
More specifically, we noticed the following division behaviors in C:
This will make much more sense to you once you understand how numbers are actually stored inside the computer.