它通过仅消耗8位存储来节省内存,而整数则为32.数组的大小与包含的数据类型的大小成正比;整数数组将消耗大约四倍于字节数组的内存(手动波).
从Wikipedia开始:
A two’s-complement system or two’s-complement arithmetic is a system in which negative numbers are represented by the two’s complement of the absolute value;07001 this system is the most common method of representing signed integers on computers.[2] In such a system,a number is negated (converted from positive to negative or vice versa) by computing its two’s complement. An N-bit two’s-complement numeral system can represent every integer in the range ?2^(N?1) to +2^(N?1)?1.