Array’s--C#

Array’s--An Array a collection of many   location Witch Share Common  name and Common Type.
               In C# Every Array An object.
               In C# Every Array Deriving From System.Array.Class.
               In C# Array’s Classified In 3 Types ..1-Single Dimensional Array
                                                                           2.Multi Dimensional  Array
                                                                           3.Jagged Array



1-Single Dimensional Array-The 1-Single Dimensional Array contains only one   Dimensional Memory.
Array Length . the length Property Refers the number in an Array.



2.MultiDimensional Array—
Example:--



3.Jagged Array--


Jagged  is also Called Array of Array’s , it is Also Called Dynamic Array. Jagged Array overcome the limitations of Multi Dimensional  Array.
In Multi Dimensional Array We need To initialize The Rows And Columns  At the time of Array Declaration .Where As in  .Jagged Array We need To initialize The Rows  only not Colum’s.
The Colum’s can initialized  for each Row Dynamically. The jagged Array Avoid the Wastage of memory.




Note—The length Return’s the Number Of Row’s in Jagged  Array.{ row  index}. Length return’s  the number Colum in that Specific Row.

Comments