Binary number system

as we know that 11 decimal equivalent in binary is 1011 and as we are taught that -5 is also stored as 1011 so how to differentiate between these two different no.s?

ok so 1 digit is the sign that shows that 011 part of 1011 represent -5 right?

@Ashish2001 Actually -5 will be stored as 10000000000…00011 in 32 bit representation.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.