unsinged int中 int 可以省略?

来源:百度知道 编辑:UC知道 时间:2024/05/14 08:21:36

最好不要省. 不同的编译器默认情况可能不同.

unsigned char -- 1 Byte 无符号整数.
unsigned short int -- 2 Bytes 无符号整数
unsigned long int -- 4 Bytes 无符号整数
unsigned int -- 编译器不同, 可能2 Bytes,可能4Bytes
unsigned -- 语法上允许.不同的编译器默认情况可能不同, 省3个字母,不值得.

可以的,unsigned = unsigned int
另外你的unsinged拼写错了

只要不报错就可以。.

呵呵。.你自己测试啊。.