Keywords are the words in a language that are used for some internal process or represent some predefined actions. uint is a keyword that is used to declare a variable which can store an integral type of value (unsigned integer) from the range of 0 to 4,294,967,295. It keyword is an alias of System.UInt32.
uint keyword occupies 4 bytes (32 bits) space in the memory.
uint variable_name = value;
Input: num: 67 Output: num2: 67 Size of a uint variable: 4 Input: num = 24680 Output: Type of num1: System.UInt32 num1: 24680 Size of a uint variable: 4
num2: 67 Size of a uint variable: 4
Type of num1: System.UInt32 num1: 24680 Size of a uint variable: 4 Min value of uint: 0 Max value of uint: 4294967295
Error: When we input wrong integer and also input number beyond the range
Constant value `4294967297′ cannot be converted to a `uint’