|
|
|
|
|
by bluetomcat
1392 days ago
|
|
A disadvantage comes to mind. While the following loop works as expected: for (size_t i = 0; i < length; i++) ...
The following causes an unsigned integer underflow and is an infinite loop: for (size_t i = length - 1; i >= 0; i--) ...
|
|
[1] https://gustedt.wordpress.com/2013/07/15/a-praise-of-size_t-...