News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by salawat on Wednesday August 24, 2022 @05:00PM (#32585684)
Principle of least surprise violated.

Also, that behavior is not guaranteed. The programmer would need to be aware of how the particular machine in question actually handles that.

Then again, that's C.

Re:Why do arrays start at 0? by sersnth on Wednesday August 24, 2022 @05:18PM (#32585905)
Unsigned integer underflow and overflow are both guaranteed to wrap by the C standard.