Electronics - Arithmetic Operations and Circuits - Discussion
Discussion Forum : Arithmetic Operations and Circuits - General Questions (Q.No. 3)
3.
Adding the two's complement of –11 + (–2) will yield which two's complement answer?
Discussion:
7 comments Page 1 of 1.
Kavi said:
1 decade ago
for (11) --> 1011
1's Com (11) --> 0100
2's Com (11) --> 0101
for (2) --> 0010
1's Com (2) --> 1101
2's Com (2) --> 1110
Add 2's Comp (11) & (2)
0101 + 1110 --> 10011 --> last digit carry so eliminate -->0011
for negative sign we can use 1.
so the ans is
1111 0011
1's Com (11) --> 0100
2's Com (11) --> 0101
for (2) --> 0010
1's Com (2) --> 1101
2's Com (2) --> 1110
Add 2's Comp (11) & (2)
0101 + 1110 --> 10011 --> last digit carry so eliminate -->0011
for negative sign we can use 1.
so the ans is
1111 0011
(2)
Sharanya said:
1 decade ago
It is simple. -11+(-2)=-13. So taking 2's complement for -13, we get, 1111 0011.
(1)
Harish said:
1 decade ago
Can anyone explain me ?
Priya said:
1 decade ago
For negative sign we use only one 1. Then how did you said @Kavi? please explain me?
Kimsy said:
9 years ago
Thank you @Sharanya.
You made it in short and easy way!
You made it in short and easy way!
Albert said:
9 years ago
@Kimsy it's not that easy & @ Sharanya you explained it wrong.
We have to add 2's complement of (-11) and (-2). But Sharanya explained the simple addition and then 2's complement of the result.
We have to add 2's complement of (-11) and (-2). But Sharanya explained the simple addition and then 2's complement of the result.
Goud said:
7 years ago
Thank you @Kavi.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers