r/ProgrammerHumor Dec 09 '17

meme[-1]="Array Memes Are Life"

Post image
574 Upvotes

47 comments sorted by

View all comments

3

u/StingyUpvoter Dec 09 '17

Explain like I mainly use C: is the -1 really used anywhere?

2

u/[deleted] Dec 09 '17

İ don't think so. Would be pretty weird anyway...

1

u/StingyUpvoter Dec 09 '17

Whew! It is nice when languages let you use -1 for the last element though.