In the decimal system, a carry occurs when the sum of 2 digits is 10 or more. For example,
In binary, a carry occurs when the sum of 2 binary digits is 2 or more. This leaves only four possibilities:
0 + 0 =
02 0 + 1 = 12 1 + 1 = 102 (therefore, 0 with a carry) 1 + 1 + 1 = 112 (therefore, 1 with a carry) |
No comments:
Post a Comment