Answers for "how to find length of array in c sharp in function"

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 find length of array in c sharp in function"

C# Answers by Framework

Browse Popular Code Answers by Language