5 votes 5 votes 1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 + 0 1 1 0 0 0 0 0 Please justify your answer. I'm not getting a clue whether the given number is in 2's complement . Should I have to find 2's complenet of the given number or not CO and Architecture number-representation number + – pC asked Nov 27, 2015 pC 1.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 5 votes 5 votes Overflow = (Carry out of MSB) Ex-OR (Carry on MSB) 3rd will give Overflow. Ref.http://sandbox.mc.edu/~bennet/cs110/tc/add.html Digvijay Pandey answered Nov 27, 2015 selected Dec 19, 2016 by pC Digvijay Pandey comment Share Follow See all 4 Comments See all 4 4 Comments reply अनुराग पाण्डेय commented Nov 27, 2015 reply Follow Share Since in any number system Most Significant Bit represents the sign bit, hence signs of both the operands should be different in option 2. So without delving into much arithmetic, I daresay addition operator will not end up with an overflow. Right? 0 votes 0 votes Arjun commented Nov 27, 2015 reply Follow Share @Anurag overflow and carry are different. 1 votes 1 votes अनुराग पाण्डेय commented Nov 27, 2015 reply Follow Share Yes Arjun sir, but the resulting number will always be between 01111111 & 11111111 in option 2.So how overflow is possible? 1 votes 1 votes Arjun commented Nov 28, 2015 reply Follow Share Yes, 2 option is adding a positive and negative number (if we take numbers as signed)- can not produce overflow but can produce carry. 3 votes 3 votes Please log in or register to add a comment.