My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Is 2's complement binary representation of 16 same as that of 16?

Default profile photo
Anonymous
·Feb 20, 2018

If we consider only 5 bit binary of 16 we get 10000. Now to find 2's complement of 16 we do 01111+1=10000. Which shows -16 and 16 have same binary representations.