Quote:
Im sorry but i still don't see why
Think about it: you were born on October 23rd 2000, so your first birthday was October 23rd 2001, your second on October 23rd 2002, and so on. The year is indexed from 2000, the birthday numbers run 1st, 2nd, 3rd, and so on.
This called zero-based and one-based indexing. "Human values" such as age run with a "one-based index" because we never say "my baby is zero years old", or "he is 0 months and five days", computers run with "zero-based" indexes.
So the first element (human term) of an array is at index zero, the second is at index 1, and so on.
string[] human = new string[] {"1st", "2nd", "3rd"};
for (int i = 0; i < human.Length; i++)
{
Console.WriteLine($"The {human[i]} element is at index {i}");
}
So the element at index
N
will be the
"N + 1"th
element.
Does that make sense?