Practice free →
HomeGATE ECEelectronicsgateece_digital › A 2's complement representation in n bits can re…

A 2's complement representation in n bits can represent integers in which range?

A0 to 2^n - 1 always
B-2^(n-1) to +2^(n-1) - 1
C-2^n to +2^n - 1 always
D-2^(n-1)+1 to +2^(n-1) always
Answer & Solution
Correct answer: B. -2^(n-1) to +2^(n-1) - 1
2's complement n-bit: range [-2^(n-1), 2^(n-1)-1]. E.g. 8-bit: -128 to +127. Asymmetric (one more negative value than positive). Negation = invert + 1.
Solve this in the app — GATE ECE practice & 24k+ MCQs →
Related questions