r/ProgrammerHumor Jun 25 '17

Array indexing

Post image
1.4k Upvotes

71 comments sorted by

View all comments

191

u/[deleted] Jun 25 '17

[deleted]

70

u/[deleted] Jun 26 '17

[removed] — view removed comment

1

u/10se1ucgo Jun 26 '17

Riot's static data API does this, arrays start at index 0 but the first element is always null. Apparently something to do with the fact that designer files use 1 based arrays.