Representation of negative numbers in C?
问题 How does C represent negative integers? Is it by two\'s complement representation or by using the MSB (most significant bit)? -1 in hexadecimal is ffffffff . So please clarify this for me. 回答1: ISO C ( C99 section 6.2.6.2/2 in this case but it carries forward to later iterations of the standard (a) ) states that an implementation must choose one of three different representations for integral data types, two's complement, ones' complement or sign/magnitude (although it's incredibly likely