Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
tryptophan
5y ago
0 comments
Save
Share
Arrays start at 0. example_array[5] is actually the 6th number in the array.
0 comments
1 comments · 1 top-level
top
newest
oldest
dagmx
5y ago
Ah yeah that makes sense. I was thinking the `i` check already accounted for the zero indexing.
j
/
k
navigate · click thread line to collapse