News for hackers. Stuff that matters.
Re:Essential C (2003) [pdf] by ramshorns on Wednesday September 02, 2020 @04:36PM (#24357830)
That's the idiomatic way? Cool. The more straightforward-looking way,

    for(i = n-1; i >= 0; i--)
        { /* operate on a[i] */ }
breaks if i is unsigned, like a size_t.
Re:Essential C (2003) [pdf] by a1369209993 on Wednesday September 02, 2020 @05:28PM (#24358368)
Yep. That why it's a idiom, rather than a obvious-way-of-doing-it-that-anyone-competent-would-use.