Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



An embedded computer uses $8$-bit $2$'s complement representation for signed integers. What is the minimum negative integer value which can be represented in this computer?





Solution

In $n$-bit $2$'s complement representation, the range of signed integers is:

$-2^{n-1}$ to $2^{n-1}-1$

Here,

$n=8$

So, range is:

$-2^{7}$ to $2^{7}-1$

$=-128$ to $127$

Therefore, the minimum negative integer value is $-128$.



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...