Skip to content
Related Articles
Open in App
Not now

Related Articles

ISRO | ISRO CS 2013 | Question 8

Improve Article
Save Article
  • Last Updated : 20 Nov, 2018
Improve Article
Save Article

Which logic gate is used to detect overflow in 2’s complement arithmetic?
(A) OR gate
(B) AND gate
(C) NAND gate

(D) XOR gate

Answer: (D)

Explanation: In 2’s complement numbers, we can check whether there’s an overflow or not by taking the XOR of carry in and carry out of the most significant bit.
If XOR value = 0, then no overflow.
If XOR value = 1, then overflow.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!