Difference between Int32 and UInt32 in C# Last Updated : 26 May, 2020 Comments Improve Suggest changes Like Article Like Report 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. Example : C# // C# program to show the // difference between Int32 // and UInt32 using System; using System.Text; public class GFG { // Main Method static void Main(string[] args) { // printing minimum & maximum values Console.WriteLine("Minimum value of Int32: " + Int32.MinValue); Console.WriteLine("Maximum value of Int32: " + Int32.MaxValue); Console.WriteLine(); // Int32 array Int32[] arr1 = {-3, 0, 1, 3, 7}; foreach (Int32 i in arr1) { Console.WriteLine(i); } } } Output: 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. Example : C# // C# program to show the // difference between Int32 // and UInt32 using System; using System.Text; public class GFG{ // Main Method static void Main(string[] args) { // printing minimum & maximum values Console.WriteLine("Minimum value of UInt32: " + UInt32.MinValue); Console.WriteLine("Maximum value of UInt32: " + UInt32.MaxValue); Console.WriteLine(); // Int32 array UInt32[] arr1 = { 13, 0, 1, 3, 7}; foreach (UInt32 i in arr1) { Console.WriteLine(i); } } } Output: 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. Int32 is used to represents 32-bit signed integers .UInt32 is used to represent 32-bit unsigned integers.2. Int32 stands for signed integer.UInt32 stands for unsigned integer.3. It can store negative and positive integers.It can store only positive integers.4. It takes 4-bytes space in the memory.It also takes 4-bytes space in the memory.5. The range of Int32 is from -2147483648 to +2147483647.The UInt32 ranges from 0 to 4294967295. 6. Syntax to declare the Int32 : Int32 variable_name; Syntax to declare the UInt32: UInt32 variable_name; Comment More infoAdvertise with us Next Article Difference between Int32 and UInt32 in C# S SHUBHAMSINGH10 Follow Improve Article Tags : Difference Between C# CSharp-Int32-Struct CSharp-UInt32-Struct Similar Reads Difference between Int16 and UInt16 in C# Int16: This Struct is used to represents 16-bit signed integer. The Int16 can store both types of values including negative and positive between the ranges of -32768 to +32767. Example : C# // C# program to show the // difference between Int16 // and UInt16 using System; using System.Text; public cl 2 min read Difference between Int64 and UInt64 in C# Int64: This Struct is used to represents 64-bit signed integer. The Int64 can store both types of values including negative and positive between the ranges of -9,223,372,036,854,775,808 to +9, 223,372,036,854,775,807 Example : C# // C# program to show the // difference between Int64 // and UInt64 us 2 min read Difference between Int16, Int32 and Int64 in C# Int16: This Struct is used to represents 16-bit signed integer. The Int16 can store both types of values including negative and positive between the ranges of -32768 to +32767. Example : C# // C# program to show the // Int16 Struct usage using System; using System.Text; public class GFG { // Main Me 3 min read Difference between UInt16, UInt32 and UInt64 in C# UInt16: This Struct is used to represents 16-bit unsigned integer. The UInt16 can store only positive value only which ranges from 0 to 65535. Example : C# // C# program to show the // UInt16 struct using System; using System.Text; public class GFG{ // Main Method static void Main(string[] args) { / 3 min read Difference Between Unsigned Int and Signed Int in C Integers are typically stored as 32-bit values, but in some environments, they may contain 16-bit values (or even a different number, usually the product of two powers). For example, let's examine 4-bit integers. They are small but can help illustrate a point. Signed int can represent both positive 2 min read Like