News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by wruza on Wednesday August 24, 2022 @06:25PM (#32586616)
On the other hand a computer/car/house can also be 10 years old but not 0

Really? When I buy a new PC, to me it will get 1 year old only after a year. Before that it is just NEW. Is that what you meant?

Re:Why do arrays start at 0? by pvinis on Wednesday August 24, 2022 @10:46PM (#32588818)
Exactly. What we call "new" is the 0th year. It's the same when you start counting seconds. You say "ok counting starts now", then wait a second and say "one", then wait and say "two". Before you say "one", you don't say zero, but it's implied by you waiting a second after you or someone says "go". That's still 0-indexed.