Int32和UInt32有什么区别? [英] What is the difference between Int32 and UInt32?
本文介绍了Int32和UInt32有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Int32
和UInt32
有什么区别?
如果它们与容量范围功能相同,那么问题是出于什么原因创建了UInt32
?何时应使用UInt32
代替Int32
?
If they are the same with capacity range capabilities, the question is for what reason UInt32
was created? When should I use UInt32
instead of Int32
?
推荐答案
UInt32不允许使用负数.来自 MSDN :
UInt32 does not allow for negative numbers. From MSDN:
UInt32值类型表示无符号整数,值的范围为0到4,294,967,295.
The UInt32 value type represents unsigned integers with values ranging from 0 to 4,294,967,295.
这篇关于Int32和UInt32有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文