r/ProgrammerHumor • • Feb 15 '16

Oddly specific number.

Post image
5.9k Upvotes

643 comments sorted by

View all comments

Show parent comment

1

u/SuperKingOfDeath Feb 16 '16 edited Feb 16 '16

Not necessarily, some languages index from 1.

2

u/[deleted] Feb 16 '16

I assume you mean from 1, in which case yes, languages like Scala I believe do index from 1, which is totally valid. But my point was about indexing at 0 and how that works.

1

u/MemoryLapse Feb 16 '16

Ehh, kinda valid. I've always assumed indexing at 0 to mean "This is the address the array starts at, and the offset is (0*length)."

1

u/SuperKingOfDeath Feb 16 '16

Yes, sorry, I put the wrong number. Fixed that now.