1
Reply

Int vs uint in C#

Jobin S

Jobin S

1y
1.6k
0
Reply

    int (Signed Integer):Represents a 32-bit signed integer. Can store both positive and negative values. Range: -2,147,483,648 to 2,147,483,647.Example: int myInt = 42;uint (Unsigned Integer):Represents a 32-bit unsigned integer. Can only store non-negative values (zero and positive). Range: 0 to 4,294,967,295.uint myUInt = 42u;