Information Technology Reference
In-Depth Information
Comparing Array Types
Table 14-2 summarizes some of the important similarities and differences between the three
types of arrays.
Table 14-2. Summary Comparing Array Types
Syntax
Array
Objects
Array Type
Brackets
Commas
Shape
One-dimensional
￿Has op imizing
instructions in CIL.
1
Single set
No
Rectangular
￿Mu idimensional
￿
1
Single set
Yes
All sub-arrays in a
multidimensional
array must be the
same length.
Jagged
￿Mu idimensional
￿
Multiple
Multiple
sets
No
Sub-arrays can be of
different lengths.
Search WWH ::




Custom Search