 Hello friends. I am Sanjay Gupta. I welcome you on my YouTube channel. My YouTube channel contains more than 800 videos on various programming languages. You can search those videos through the keyword programming by Sanjay Gupta. You can search my YouTube channel by typing my name Sanjay Gupta in YouTube. You can subscribe my YouTube channel if you want to follow programming related videos. If you have any queries, you can connect with me by following these details. So in this video, I'm going to discuss about binary addition. So if you want to perform binary addition operation, then you have to follow this addition table. If two corresponding bits are zero, zero, then their addition result will be zero. If first visit is zero and second visit is one, then result will be one. If first visit is one, second is zero, then result will be one. If both corresponding visits or bits are one, then result will be zero plus a carry of one to the next higher column. So this is, you have to understand with the help of an example. So after explanation of this addition table for binary values, I am moving on the examples. So in this video, I am going to discuss various examples so that you can understand how we can perform binary addition. So here you can see first number is one zero one and second number is one zero. Both the numbers are binary numbers. So if we apply addition operation here, then we have to add this one with the zero. So result will be one. Then if we apply addition on zero and one which are available on second column result will be one. And then for third column, values one and in second number, there is no value. So result will be one. So finally the outcome is one, one, one. So this is the example number one. Now let's take a look on example number two, which is going to demonstrate you how we can perform addition on one and one so that a carry will be generated. So here you can see this first column. Here both the corresponding bits are one one. So if we add two ones, then result will be zero. As you can see here and you have to put a carry of one to the next column as I mentioned here. So this is the carry. Now I need to add this column, including this carry. So one one zero three bits are available here. So again one one result is zero and it is providing a carry which is written here. Now including this carry, I have to add these zeros. So one zero zero result will be one then this zero one result will be one and then one will be available here. So finally the addition result will be triple one double zero. So this way we can add two corresponding ones so that we can identify the carry value and I explained how you can use the carry values to the next columns. Now example number three here you can see first column. It is having two ones. So result is zero and it is providing a carry of one to the next higher column. Now here you can see different scenario here three ones are available. So you can use simplest method. First you have to add two ones. So result of two ones is this one zero. Now if we add one more one here. So this time result will be one one. It means you can keep one one here and another one you can put as carry. So friends if you if you are adding two ones like this first column then result will be zero and carry will be one. But if you are adding three ones like this in second column if you are adding three ones then result will be one and carry will be one. Now, here two ones are available. So result will be zero and carry of one will be available here. Then again I am adding two ones. So result is zero and carry of one is available here. Again I am adding two ones. So result is zero and carry of one is available here again. Again I am adding two ones, so result is zero and a carry of one is available here, which I have mentioned directly here. So this way I have added two binary values and the final result is 1, 0, 0, 0, 1, 0. So I hope you have understood how I have added two binary values in this example. One more example, which is having fractional part also. So starting from right most value, so 1, 0 is 1, again 1, 0 is 1, 0, 1 is 1. Now we have two ones, so here result is 1 and carry of one is available here. Then three ones, so result will be 1 and carry of one will be available here. As I discussed in previous example, then two ones result is 0, carry of one, then three ones, so result is 1 and carry is 1, again three ones, so result is 1 and carry is 1, two ones are available here, so result will be 0 and this one is because of the carry. So finally the result is 1, 0, 1, 1, 0, 1, 0, 1, 0, triple 1. So this way I have added two binary values in this example. One more example, here 0, 0 is 0, 1, 1 is 0 and one carry is available here. So if we are adding two ones, then result will be 0 and one carry we have to use. Then 1, 1, result is 0 and carry of one is available here, this time three ones, so result is 1 and this one is because of carry, so this way in this example I have added two binary values. One more example, 1, 1, result is 0 and one carry is available here, then 1, 0, 0, if we add these three bits, then result will be 1, then for third column I am adding 1, 1, so result is 0, carry is 1, again this carry is added with 0, 0, so result will be 1, then 0, 1, result is 1, then 1, 0, result is 1, then 1, 1, result is 0 and a carry of one is available here, then 1, 1, result is 0 and this one is because of carry. So this way I have added two binary values in this example, so I hope you have understood now properly how we can add two binary values. So I hope you have understood all the examples which I have explained in this video. If you have any queries you can connect with me by following these details. If you want to watch more programming related videos you can follow my YouTube channel. Thank you for watching this video.