标签:
种类
int8 int16 int32 int64
uint8 uint16 uint32 uint64
int uint
Unicode字符rune类型等价int32
byte等价uint8
uintptr,无符号整型,
由系统决定占用位大小,足够存放指针即可,和C库或者系统接口交互
具体类型 | 取值范围 |
int8 | -128到127 |
uint8 | 0到255 |
int16 | -32768到32767 |
uint16 | 0到65535 |
int32 | -2147483648到2147483647 |
uint32 | 0到4294967295 |
int64 | -9223372036854775808到9223372036854775807 |
uint64 | 0到18446744073709551615 |
标签:
原文地址:http://www.cnblogs.com/zengyz/p/5816174.html