Re:Why do arrays start at 0?
by xxs on Wednesday August 24, 2022 @02:44PM
(#32583937)
the footnote [1] should be [0], just for the sake of this very topic.
Seriously though, while the idiom does work for unsigned integers, it's a bad idiom to learn [makes code reviews harder]. The post-decrement one in the loop body works with everything (signed/unsigned), and it's well known.
Seriously though, while the idiom does work for unsigned integers, it's a bad idiom to learn [makes code reviews harder]. The post-decrement one in the loop body works with everything (signed/unsigned), and it's well known.