3 ms·
>The benefits of 0 indexing are well known and mostly revolve around the fact you tend to have far less fiddling with -1 and +1 as you write code. Depends on w
by pmelendez 4y ago
>The benefits of 0 indexing are well known and mostly revolve around the fact you tend to have far less fiddling with -1 and +1 as you write code.
Depends on what you are doing. I seldom have to do a flat 2D array these days, but array[total-1] is an almost everyday thing.