+ 4
why array always start with index number 0...????
3 odpowiedzi
+ 2
Maybe to align indexes with unsigned int values?
+ 2
because computers count from zero and always have. I think it's a throwback to the early scientific uses of computers. it's not really important other than that you remember it. so for example vector.size() returns the number of elements, but to access the last element, you would have to take away one from the size: vector[vector.size() - 1] will get the last element of the vector.
- 10
if you continue learning you will know that you can start it as you wish =D