Why Do Arrays Start at Zero?
A common point of confusion for new programmers arises when trying to access a item in an array/list/slice/string etc. The “first” item is not located in position 1, but rather it is in position 0, or so it seems. The reason for this is all thanks to the programming language C. But why is C like that? For this we need to understand pointers. A pointer is a variable that stores a memory location holding a value.
[Read More]