The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+12 votes

The range of integers that can be represented by an $n$ bit 2’s complement number system is:

  1. $-2^{n-1} \text{ to } (2^{n-1} -1)$

  2. $-(2^{n-1} -1) \text{ to } (2^{n-1} -1)$

  3. $-2^{n-1} \text{ to } 2^{n-1}$

  4. $-(2^{n-1} +1) \text{ to } (2^{n-1} -1)$

asked in Digital Logic by Veteran (69k points)
edited ago by | 2.5k views
Answer: A

3 Answers

+14 votes
Best answer

An n-bit two's-complement numeral system can represent every integer in the range −(2n − 1) to +(2n − 1 − 1).

while ones' complement can only represent integers in the range −(2n − 1 − 1) to +(2n − 1 − 1).

A is answer

answered by Loyal (4.9k points)
edited by
+6 votes
answer - A
answered by Boss (9.3k points)
–1 vote
Ans: A
answered by Boss (7.8k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

33,687 questions
40,231 answers
38,803 users