Binary subtraction of 100101 – 011110 is?

Nam Phong

New member
Binary subtraction of 100101 – 011110 is?
A. 000111
B. 111000
C. 010101
D. 101010
 
Answer: a
Explanation: The rules for Binary Subtraction are :
0 – 0 = 0
0 – 1 = 1 ( Borrow 1)
1 – 0 = 1
1 – 1 = 0
Code:
  1 0 0 1 0 1
- 0 1 1 1 1 0
  ___________
  0 0 0 1 1 1
  ___________
Therefore, The subtraction of 100101 – 011110 = 000111.
 

Tìm kiếm

Back
Top