DataType[ ]
ArrayName;
ArrayName =
new
DataType [ IntExpression ];
Declaring and Allocating an Array
// declares array
// allocates array
l
Operator
new
is used to allocate the specified number of
memory locations needed for array DataType
l
l
SYNTAX FORMS
l
l
l
l
l
l
l
l
l
l
l
DataType[ ]
ArrayName
=
new
DataType [ IntExpression ];