278 views
2 votes
2 votes
how we will find 1's complement of   -4    is it possible to find it

1 Answer

Best answer
1 votes
1 votes
First we need to find how many bits are required to write -4 in 1's compliment

Range of 1s compliment is $-(2^{n-1}-1) to (2^{n-1}-1)$

So we will need at least 4 bits to write -4

Now write binary equivalent of 4= 0100

Now replace 0 with 1 and 1 with 0

-4 =1011
selected by

No related questions found