Skip to content
Related Articles

Related Articles

Improve Article
GATE | GATE-CS-2005 | Question 16
  • Last Updated : 11 Sep, 2014

The range of integers that can be represented by an n bit 2’s complement number system is
(A) – 2n – 1 to (2n – 1 – 1)
(B) – (2n – 1 – 1) to (2n – 1 – 1)
(C) – 2n – 1 to 2n – 1
(D) – (2n – 1 + 1) to (2n – 1 + 1)


Answer: (A)

Explanation: For example, signed char is 8 bits, we can store from -128 to 127 using sign char. Refer http://en.wikipedia.org/wiki/Two%27s_complement
for more details.


Quiz of this Question

Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :