News for hackers. Stuff that matters.
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.
Re:Counting up vs. counting down by masklinn on Thursday November 19, 2015 @10:32AM (#10595266)
Wouldn't it be SIZE_MAX since i is a size_t?
Re:Counting up vs. counting down by knodi123 on Thursday November 19, 2015 @10:28AM (#10595251)
thanks! that was very helpful, and pitched right at my knowledge level.