C
C#2y ago
Ewan

✅ What does uint mean?

.
7 Replies
Ewan
EwanOP2y ago
Console.WriteLine("Please enter a number between 2 and " + uint.MaxValue); uint number = uint.Parse(Console.ReadLine()); what does uint mean here? whats the difference between int and uint
x0rld
x0rld2y ago
unsigned int an unsigned int is an int that cannot be below 0 and the max value is higher
MODiX
MODiX2y ago
Servator
REPL Result: Success
uint.MaxValue
uint.MaxValue
Result: uint
4294967295
4294967295
Compile: 336.542ms | Execution: 65.708ms | React with ❌ to remove this embed.
Wardergrip
Wardergrip2y ago
Unsigned integer named number is a string we try to interpet as a unsigned integer (uint.Parse())
Ewan
EwanOP2y ago
thank you! thank yay
Accord
Accord2y ago
Closed!

Did you find this page helpful?