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’
- How to implement is functionality without using is keyword in C#
- C# | this Keyword
- C# | finally keyword
- C# | as Operator Keyword
- C# | is Operator Keyword
- Is vs As operator keyword in C#
- Static keyword in C#
- typeof Operator Keyword in C#
- Invoking an overloaded constructor using this keyword in C#
- Difference between readonly and const keyword in C#
- LINQ | Let Keyword
- byte Keyword in C#
- decimal keyword in C#
- char keyword in C#
- bool Keyword in C#
- sbyte Keyword in C#
- float keyword in C#
- double Keyword in C#
- void Keyword in C#
- short keyword in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.