Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Signed integer variables range from-32768 to 32768. What does this mean? Why is the sign bit 011111165438?
Signed integer variables range from-32768 to 32768. What does this mean? Why is the sign bit 011111165438?
Signed integer variable int type The previous machine was 2 bytes 1 byte 8 bits 2 16 bits.

One bit is the sign bit representing the sign. The sign bit is 0, indicating a positive number, and the sign bit is 1, indicating a negative number.

That is, 15 bits to represent numbers. The power of 2 15 is 3278.

The range of values should be-32768 ~+32767.

0111111111. 0 1 1 1 1 1 1 1 1 1 1 1 165438+