i = 0; i < length; ++i

March 18, 2020

0-based index was natural for me to choose this format

0 ≤ i < N

intead of

1 ≤ i < _N_+1

I realized I was nudged. I’ve been avoid bugs all along.

Why numbering should start at zero?

Edsger W. Dijkstra


Profile picture

Kee = 💡 critical thinker ➕ 🦄 amazing coder ➕ 👦 handsome

© 2021 Kee Nam