Here we learn the method to do addition of binary numbers.
We have to keep in mind a few important basics which can help us do this addition.
In binary addition : 0 + 0 = 0. 0 + 1 = 1. 1+1 = 0 (carry 1). 1+1+1 = 1 (carry 1),
If we keep these four basics in our mind, then we can easily do binary number additions.
Also, if you want to add 3 or more binary numbers, you can just break down the problem into multiple additions of 2 numbers.
Do notice how many bits were required to store the result of the summation.
See Bit Manipulation Interview Preparation Series here:
• Bit Manipulation Interview Series
You could follow us on Facebook and Instagram:
Facebook : / firmwarecode
Instagram : / firmwarecode
#bitmanipulation #bitalgorithm
#BitManipulation #BitAlgorithms