1011 is 11 right how come -5?

if -5 is 1011 then how to represent 11 in binary?

could u tell the timestamp in the video where this is discussed

15:40 its about 2s complement

it should be like for the entire 32 bit representation for ease bhaiya has shown for 4 bits

actuallly it the last bit is set in 32 bit representations and no the 4th bit

just for ease of representations and understanding just 4 bits are used

tell me what is binary of eleven then?

1011 is the binary representation of 11 this is preceded by 28 0`s to the left

to store negative nos in binary we simply use the leftmost bit of the number as a special value to represent the sign of the number : 0 = positive, 1 = negative . For example, a value of positive 12 (decimal) would be written as 000…1100 in binary , but negative 12 (decimal) would be written as 100…1100.

now in video
to explain bhaiya use 4th bits but actually it is leftmost bit

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask

1 Like

something like this