I know about int
and long
(32-bit and 64-bit numbers), but what are uint
and ulong
?
C# Types – Difference Between int and uint, long and ulong
c++integersignedtypesunsigned
c++integersignedtypesunsigned
I know about int
and long
(32-bit and 64-bit numbers), but what are uint
and ulong
?
Best Answer
The primitive data types prefixed with "u" are unsigned versions with the same bit sizes. Effectively, this means they cannot store negative numbers, but on the other hand they can store positive numbers twice as large as their signed counterparts. The signed counterparts do not have "u" prefixed.
The limits for int (32 bit) are:
And for long (64 bit):