Int32: This Struct is used to represents 32-bit signed integer. The Int32 can store both types of values including negative and positive between the ranges of -2147483648 to +2147483647.
Minimum value of Int32: -2147483648 Maximum value of Int32: 2147483647 -3 0 1 3 7
UInt32: This Struct is used to represents 32-bit unsigned integer. The UInt32 can store only positive value only which ranges from 0 to 4294967295.
Minimum value of UInt32: 0 Maximum value of UInt32: 4294967295 13 0 1 3 7
Differences between Int32 and UInt32 in C# Sr.No INT32 UINT32 1. 2. 3. 4. 5. 6. Syntax to declare the Int32 : Syntax to declare the UInt32:
Int32 is used to represents 32-bit signed integers . UInt32 is used to represent 32-bit unsigned integers. Int32 stands for signed integer. UInt32 stands for unsigned integer. It can store negative and positive integers. It can store only positive integers. It takes 4-bytes space in the memory. It also takes 4-bytes space in the memory. The range of Int32 is from -2147483648 to +2147483647. The UInt32 ranges from 0 to 4294967295.
Syntax to declare the Int32 :
Syntax to declare the UInt32:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.