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:

  1. (A) n bits
  2. (B) n-1 bits
  3. (C) n+1 bits
  4. (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