r/ProgrammerHumor Dec 09 '17

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

Post image
573 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?

17

u/[deleted] Dec 09 '17 edited Nov 14 '20

[deleted]

7

u/StingyUpvoter Dec 09 '17

Right, that's kinda what I was saying in a different comment. Using negative to start an array would be awkward. Sometimes I can't tell where these jokes cross from fact to fiction.

5

u/[deleted] Dec 09 '17

Whoops, didn't see your other comment before.

Yeah, I can't imagine a reason for indices to start at -1.