Representation of data types
Representation of data types. Integers (int) are represented as a signed binary number. Ex. (5) 10 = (0101) 2 (-5) 10 = (?) 2 Take the 1-complement of 0101, That is 1010, and add 1 which gives 1011. 1011 is the representation of -5 The left-most bit is named the sign bit.
276 views • 15 slides