Source: wikibot/zero-based-numbering

= Zero-based numbering
{wiki=Zero-based_numbering}

Zero-based numbering is a counting method in which the first element of a sequence is assigned the index value of zero instead of one. This approach is commonly used in programming and computer science, especially in array indexing. For example, in a zero-based index system: - The first element of an array is accessed with the index \`0\`. - The second element is accessed with the index \`1\`. - The third element is accessed with the index \`2\`, and so on.