🔹 India's Most Trusted MCA Coaching 💻 Live + Recorded Classes | 👨🏫 Expert Faculty 📝 All India Test Series | 🎯 Personal Mentorship 🥈 NIMCET AIR 2: Ayush Garg
Given $8$-bit two's complement number is:
$11010011$
Since the leftmost bit is $1$, the number is negative.
To find its magnitude, take two's complement.
First, invert all bits:
$11010011\to 00101100$
Now add $1$:
$00101100+1=00101101$
Now convert $00101101$ to decimal:
$00101101=32+8+4+1$
$=45$
Since the original number was negative, the decimal equivalent is:
$-45$
Aspire Study Online Test Series, Information About Examination, Syllabus, Notificationand More.
Get MCA test series, questions & instant updates!
Are you sure to delete this comment?