7. ARRAYS
Array is a set of element of the same datatype represented by a
single variable name.
Each element of an array has a unique identifying index
number which is used for assessing the elements.
DECLARING AN ARRAY:
SYNTAX: Dim array name (array size) [as datatype]
10. TYPES OF ARRAY
• Has only one index or subscript.
• It is like a list of items that consists of one
rows and one column of item.
• Syntax: Dim array name (array size) as
datatype
ONE
DIMENSIONAL
• Have higher dimensions.
• N-dimensional array can have n
dimensions.
• Syntax: Dim array name (index1,
index2 – index n) as datatype
MULTI-
DIMENSIONAL
11. STATIC
DYNAMIC
• Size always remain
the same.
• Its size and
dimensions are
specified with its
declaration.
• Size can be
changed at run-
time.
TYPES Cont..