Hacker News new | past | comments | ask | show | jobs | submit login

It the difference between length and indexing. The new int[0] is providing the 0 as length. Mostly when seeing the construct arr[i] you might think of ā€˜iā€™ as the index.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: