Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
 
PREVIOUS NEXT
Tagged: #int #array #length
ADD COMMENT
Topic
Name
8+3 =