+ 1
Change indexes
How can i index the starting of an array from 1 instead of zero c++
2 Respuestas
+ 1
An array is basically a pointer, and indexing is simply taking the memory location of the head of the array and apply an offset.
Thus, [arr + 0] is the fisrt element, [arr + 1] the second, and so on.