2,962 views
3 votes
3 votes
Please answer silly but needful question

3 Answers

Best answer
2 votes
2 votes
2's Complement of  -57 means 2's complement representation of -57

For 8-bit signed no. representation

+57=00111001

-57= 2's of (00111001)

     =11000111
edited by
4 votes
4 votes

The correct method is-

1. write the positive number of a given problem

2. take 1's complement of a positive number

3. take 2's complement of step 2 & get the result.

the solution of above problem is-

57=00111001(represent in binary)

1's compliment form=11000110

2's compliment form= 11000110+1=11000111 is correct representation of given problem.

see link: Gate-cse-2002

edited by
0 votes
0 votes
I guess question is asked for  8 bit representation
57 $\Rightarrow$ 00111001

-57 $\Rightarrow$ 11000111
2s complement of -57 $\Rightarrow$ 00111001

2s complement $\Rightarrow$ negative way of representing a number

Related questions

1 votes
1 votes
1 answer
2
PEKKA asked Dec 19, 2016
1,166 views
What is the difference betwen 2s complent of a number and 2s complement representation of a number .
5 votes
5 votes
1 answer
3