Re:Counting up vs. counting down
by zhang3r on Thursday November 19, 2015 @10:14AM
(#10595176)
-1 in 2's complement is actually MAX_INT in unsigned. Since numBurritos is also an unsigned int it would never exceed MAX_INT making this approach work.
[ Parent
| on HN ]
Wouldn't it be SIZE_MAX since i is a size_t?