The largest integer that can be represented in signed-2's complement representation using n bits is
A) 2n-1
B) 2n)
C) 20-1-1
D) 20-1
Answers
Answered by
3
Answer : -
❥ Option A
- 2N-1-1
- Two's complement essentially takes one bit away from the value for use as a sign bit. Since we have one fewer binary digit, the maximum value is 1/2 what it would be for an unsigned number with the same number of bits. The largest positive value in N-bit two's complement is 0111... 111, which is 2N-1-1.
Hope it will help you dear!!!
⛄ ɴᴀᴢᴜ ❤
Similar questions