📜  为什么数组索引从 0 开始 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:36.829000             🧑  作者: Mango

代码示例1
An array arr[i] is interpreted as *(arr+i). Here, arr denotes the address of the first array element or the 0 index element. So *(arr+i) means the element at i distance from the first element of the array. So array index starts from 0 as initially i is 0 which means the first element of the array.