Hacker News new | ask | show | jobs
by ziml77 1397 days ago
They day you're born is birthday number 0
1 comments

Exactly.

Birthday[0] gives you an out of range exception, since there is no birthday called 0th. Birthdays are [first,second,..] indexed from 1: brithday[1] = first, birthday[2] = second, and so on. That's what indexing a series from 1 means.