3 ms·
A big problem is that C doesn't make you stick to the representation. If you accidentally subtract and go into 'negative' numbers, using an unsigned in C will
by eru 4y ago
A big problem is that C doesn't make you stick to the representation.
If you accidentally subtract and go into 'negative' numbers, using an unsigned in C will just happily give you the wrong answer.
Now in something like Haskell, it's much more robust advice to make invalid states unrepresentable. But C's compiler and runtime don't typically help you, when you are trying to break your representation.