Computers naturally store patterns of bits. For unsigned integers, this is straightforward. With 8 bits, for example: 00000000 = 0 00000001 = 1 00000010 =…
Computer uses special mechanism to store negative numbers which is 2’s complement format. Before going to that, let’s have a look on 1’s complement of a number. 1’s…