Initialization And Declaration Of Array In C#

Occasionally, you need to declare multiple variable of same data type. It is complex and time taking process. Just for an example, you have to declare 100 double type of variable then what would you do? Will you declare variable as like: double num1,num2,num3,num4,num5,num6,num7,num8…. num100; It is not a good  way to declare multiple variable of same data….

C# Array

Posted in C#Tagged ,

Array is a collection of variable of same data type. If you have declare 1000 long variable, then you can declare an long type array of 1000 size. The value of array can be access using index position of array. The first index position of array is zero. In C#,  two types of array: Single Dimensional Array and….