Answers for "is the length of an array in c sharp is int"

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
-2

how to get an arrays length in c#

int array[] array;
int index;
public void func(){
 for(int i; i < array.Length;i++){
  index++;
 }
  Console.Write(index);
}
Posted by: Guest on March-18-2021

Code answers related to "is the length of an array in c sharp is int"

C# Answers by Framework

Browse Popular Code Answers by Language