Answers for "size of array c sharp"

C#
1

how to get the size of an array in c#

int[] numbers =  {66,87,34,23,27,4};
int count = 0;
foreach(int x in numbers){
  count++;
}
Console.WriteLine(count);
Posted by: Guest on October-30-2021
0

c# array lenght

int arraylenght = YourArray.Length;
Posted by: Guest on January-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language