基本型:int 取值范围:-32768------32767 占2个字节
长整型:以long int或long表示 占4个字节
long int取值范围:-2147483648------2147483647
long的取值范围: -9223372036854774808--------9223372036854774807
短整型:short int 或short
short取值范围:-32768---32767
byte取值范围:-128--127
无符号型:是正数
整型变量的定义:
int a,b; (指定变量a,b为整型)
usigned short c,d ; (指定变量c,d为无符号短整型)
转载于:https://blog.51cto.com/wsszsmx/179964