Explain how you would determine the index of the last element in an array in c# code example
Example: last index for array c#
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;