An array is a collection of variables that are of the same data type. The following is the general form to declare an
array:
data-type array-name[array-size];
Here data-type is the type specifier that indicates the data type of the array elements. array-name is the name of the
declared array. array-size defines how many elements the array can contain. Note that the brackets ([ and ]) are
required in declaring an array. The pair of [ and ] is also called the array subscript operator.
In addition, C supports multidimensional arrays.
Friday, October 16, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment