Wednesday, July 9, 2008

What is Array in C#?

In c# programming array can be declared as fixed or dynamic
For ex Fixed array will be like this int[] Arrayname; Arrayname=new int[20]; This arrayname will be accept from 0 to from, The reason is array value started from o th position and the end position is the lastvalue or maximum value - 1.

Types of Arrays.

Arrays can be divided in to four categories
1->single-dimensional arrays
2->multidimensional arrays or rectangular arrays
3->jagged arrays
4->mixed arrays.

No comments: