4 ms·
There are two schools of though here, and I am not convinced either is obviously right. 1) If you don't need negative numbers, use unsigned integers. 2) If yo
by TorKlingberg 12y ago
There are two schools of though here, and I am not convinced either is obviously right.
1) If you don't need negative numbers, use unsigned integers.
2) If you don't need the extra positive range of unsigned integers (or defined wrapping), use signed.
You advocate (1), but C is generally based on (2), with the default int being signed, and many standard functions using plain int.