Ну да , ты должен всегда считать с нуля , даже если тебе говорят что счёт идёт с 1
напоминаю
>>69711705
>one-based numbering fucking cancer and not considering zero a natural number ruins lots of cool numerical properties.
There are no *cool* numerical properties to using zero indexing which is why counting arrays/vectors in math always starts at one. And its also why all math programming languages like Matlab, Mathematica, R all start array counting at 1
The only reason starting arrays at zero index became popular is because the C language became popular due to unix becoming popular. C is a systems language that should never have been used for user space applications and so it counts memory by offsets like assembler. So all the C family languages like C++, Java, C#, Perl, PHP, Go, Javascript all copied zero indexing. Most all languages before C such as Fortran, Cobol, Algol, Pascal, Smalltalk, APL were indexed starting at 1