- Array:
- An array
is used to store
a
collection of
data of the
same
data type
|
-
Note:
- In some
programming languages
(e.g.:
Python),
an array can
store
data of
different
data types
|
-
Strengths of
arrays:
- Instead of
defining
individual variables,
such as
number0,
number1, . . . , and
number99,
- We can
define
one
array variable such as
numbers
- After defining the
array variable,
we can use
numbers[0], numbers[1], . . . ,
and numbers[99]
as
individual
variables !!
|
|