How are negative numbers represented in 32-bit signed integer?

Posted by Ahmad Farid on Stack Overflow See other posts from Stack Overflow or by Ahmad Farid
Published on 2010-05-28T18:39:59Z Indexed on 2010/05/28 18:52 UTC
Read the original article Hit count: 295

Filed under:
|

How are negative number represented in 32-bit signed integer? Is it two's or one's complement? or the last bit on the left is like a flag? For example: (-10)

© Stack Overflow or respective owner

Related posts about binary

Related posts about numbers