Answers for "how to see how long an array is in c#"

C#
0

c# int array length

// 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);
Posted by: Guest on January-14-2022

Code answers related to "how to see how long an array is in c#"

C# Answers by Framework

Browse Popular Code Answers by Language