Computer Science - Computer Fundamentals - Discussion
Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 31)
31.
The 2's complement of a binary no. is obtained by adding.....to its 1's complement.
Discussion:
17 comments Page 1 of 2.
Gayathri said:
1 decade ago
First give the explanation about 2's complement.
Genu said:
1 decade ago
2's complement= 1's complement + 1.
2's complement of 1101 ?
0010- 1's complement
then add 1 to it
0010
1
----
0011.
2's complement of 1101 ?
0010- 1's complement
then add 1 to it
0010
1
----
0011.
Adewuyi said:
1 decade ago
How did u get 1's complement?
Naina said:
1 decade ago
To take 1's complement put 0 in place of 1 and 1 in place of 0.
Mark said:
1 decade ago
What is the difference of 2's complement to 1's complement?
Opeoluwa said:
1 decade ago
What do you mean by complement?
Gowda said:
1 decade ago
Complement means reverse of the given number also 1 become zero and zero become 1.
Hassan Umar said:
1 decade ago
To get 2s compliment you need to add 1 at the end of your 1s compliment e.g 10110 will change to 10111.
Kulvinder said:
1 decade ago
I don't understand these complements can you explain in detail?
Schnitz said:
1 decade ago
Complement = change (1 into 0) and (0 into 1).
Ex: 11111 = 00000 and 10101 = 01010.
1's complement is a regular complement, the above explanation.
2's complement is where you will change the last digit into '1' in your complement.
Ex: 11111 = 00001 and 10101 = 01011.
Ex: 11111 = 00000 and 10101 = 01010.
1's complement is a regular complement, the above explanation.
2's complement is where you will change the last digit into '1' in your complement.
Ex: 11111 = 00001 and 10101 = 01011.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers