|
|
|
|
|
by nanex
4952 days ago
|
|
Using "unsigned ints" for values that will never be negative allows you to perform one validation test instead of two. Use a typedef to avoid writing "unsigned" everywhere and you end up with less clutter in the code (for humans) and in the binary (for machines). nanex |
|
Wrong example:
Good example: