GATE CS 2019 · Question 18 · Digital Logic · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Consider Z = X - Y, where X, Y and Z are all in sign-magnitude form. X and Y are each represented in n bits. To avoid overflow, the representation of Z would require a minimum of:
- (A) n bits
- (B) n-1 bits
- (C) n+1 bits
- (D) n+2 bits
Answer
Answer (C)
Answer from the official GATE CS 2019 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes