logoalt Hacker News

xigoitoday at 5:23 AM1 replyview on HN

They meant x = 0.


Replies

layer8today at 5:39 AM

Not sure if they meant that, since the “awful” was referring to the original loop that had no x, but the generic solution in that case is:

    for (size_t i = size; i—- > x;)