this post was submitted on 11 Sep 2024
637 points (98.5% liked)

Just Post

1266 readers
415 users here now

Just post something ๐Ÿ’›

Lemmy's general purpose discussion community with no specific topic.

Sitewide lemmy.world rules apply here.

Additionally, this is a no AI content community. We are here for human interaction, not AI slop! Posts or comments flagged as AI generated will be removed.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] traches@sh.itjust.works 5 points 1 year ago (2 children)
[โ€“] Cargon@lemmy.ml 9 points 1 year ago

Array offsets start at zero. Indices start at one. Normal humans that aren't stuck in CS101 count with indices.

You start counting with 1. If you're counting floors, where you enter the building you step on floor #1 and walking upstairs you land on floor# 2. Just like how there isn't a year 0 because we count the amount of time passed. You count the number of floors traveled.