Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 1
Change indexes
How can i index the starting of an array from 1 instead of zero c++
1 Réponse
+ 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.