News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by kazinator on Wednesday August 24, 2022 @05:22PM (#32585947)
> But you only count (increment) when an event happens.

Increment what?

> When you count stars in the sky you don't say "0, 1, 2".

No, you say, "I'm going to start counting stars now. Okay, 1, 2, ...".

The preparation part is the zero. You counted stars before and reached some number; you're not starting at that number.

There are no comments on this comment yet.