this post was submitted on 21 Nov 2023
0 points (NaN% liked)

Programmer Humor

32031 readers
1249 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 2 comments
sorted by: hot top controversial new old
[โ€“] sirico@feddit.uk 0 points 10 months ago (1 children)

Haaaaaang on is that why we start on 0...

[โ€“] DmMacniel@feddit.de 0 points 10 months ago

No. We count start at zero because the array already starts with an element of a specific size. Starting at 1 would always skip that initial element.