Q. 31 Consider the ALU shown below
If the operands are in 2’s complement representation, which of the following operations can be performed by suitably setting the control lines K and C0 only(+ and – denote addition and subtraction respectively)?
(A) A + B, and A – B,but notA + 1
(B) A + B,and A + 1,but notA – B
(C) A + B,but not A – B,orA + 1
(D) A + B,and A – B,andA + 1
Answer: (A)
Explanation: