3 ms·
> If you call a method that returns an unsigned int, how do you safely pass it to a method that accepts an int? Mandate 2's complement be used. > Unsigned in
by TuxSH 1y ago
> If you call a method that returns an unsigned int, how do you safely pass it to a method that accepts an int?
Mandate 2's complement be used.
> Unsigned integer types are only really necessary when dealing with low-level bit manipulation
They also give one more bit of precision, useful when dealing with 32-bit integers (or below)