Answers for "how to get the length of an array in c sharp"

C#
-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 "how to get the length of an array in c sharp"

C# Answers by Framework

Browse Popular Code Answers by Language