# Write a C program to calculate Binary Addition and Binary Subtraction

belongs to collection: C Advance Solved Programs – C Programming

### All Answers

total answers (1)

belongs to collection: C Advance Solved Programs – C Programming

total answers (1)

## Binary addition

Binary Addition works in the same way, except that only 0’s and 1’s can be used, instead of the whole spectrum of 0-9. This actually makes binary addition much simpler than decimal addition, as we only need to remember the following:

In binary addition

Example of Binary Addition:

Now add 10 and 20

## Binary Subtraction

Subtraction and Borrow, these two words will be used very frequently for the binary subtraction. There are four rules of binary subtraction.

In binary subtraction

Example of Binary Subtraction:

Now sub 10 from 20

## SOURCE CODE : :

## Output : :

need an explanation for this answer? contact us directly to get an explanation for this answer