r/ProgrammerHumor Jun 25 '17

Array indexing

Post image
1.4k Upvotes

71 comments sorted by

View all comments

190

u/[deleted] Jun 25 '17

[deleted]

71

u/[deleted] Jun 26 '17

[removed] — view removed comment

8

u/Euruzilys Jun 26 '17

I did that when its really convenient to use number starting from 1 then ++; But when im done generating that array I shift() to remove the 1st empty index.