// Make an int array
int[] myIntArray;
// Put stuff inside it
myIntArray = new int[] { 0, 1, 10, 300, 5000 };
// Print out the length (How many numbers are in myIntArray)
Console.WriteLine(myIntArray.Length);
int array[] array;
int index;
public void func(){
for(int i; i < array.Length;i++){
index++;
}
Console.Write(index);
}
public int[] number = new int[2 /* the number here declares the lenght, not the index*/ ];
int[1 /*this number here declares the index*/] = 69;
int arraylenght = YourArray.Length;
int[] numbers = {66,87,34,23,27,4};
int count = 0;
foreach(int x in numbers){
count++;
}
Console.WriteLine(count);
string[] arr = {"foo", "bar"}
Console.WriteLine(arr.Length);
// >> 2