/*
* C# Program to get the Length of the Array
*/
using System;
class Program
{
static void Main()
{
int[] arrayA = new int[5];
int lengthA = arrayA.Length;
Console.WriteLine("Length of ArrayA : {0}", +lengthA);
long longLength = arrayA.LongLength;
Console.WriteLine("Length of the LongLength Array : {0}", longLength);
int[,] twoD = new int[5, 10];
Console.WriteLine("The Size of 2D Array is : {0}", twoD.Length);
Console.ReadLine();
}
}
----------------
OUTPUT:-
Length of ArrayA : 5
Length of the LongLength Array is :5
The Size of 2D Array is : 50
---------------------
* C# Program to get the Length of the Array
*/
using System;
class Program
{
static void Main()
{
int[] arrayA = new int[5];
int lengthA = arrayA.Length;
Console.WriteLine("Length of ArrayA : {0}", +lengthA);
long longLength = arrayA.LongLength;
Console.WriteLine("Length of the LongLength Array : {0}", longLength);
int[,] twoD = new int[5, 10];
Console.WriteLine("The Size of 2D Array is : {0}", twoD.Length);
Console.ReadLine();
}
}
----------------
OUTPUT:-
Length of ArrayA : 5
Length of the LongLength Array is :5
The Size of 2D Array is : 50
---------------------
Nice unique article on the topic, want to know more about Tatkal ticket tricks and Aadhaar card solution for latest Computer related tricks
ReplyDeletethanks for nice article.
ReplyDeletenice job
ReplyDelete