EasyManua.ls Logo

Commodore VIC-20 - Page 77

Commodore VIC-20
308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
each
row.
There
are
200
numbers
in
the
table.
How
would
you
like
it
if
you
have
to
assign
a
unique
name
to
each
of
the
200
numbers?
It
would
be
far
simpler
to
give
the
entire
table
one name,
and
identify
individual
numbers
within
the
table
by
their
table
location.
That
is
precisely
what
an
array
does
for
you.
Arrays
of
up
to
eleven
elements
(subscripts
0
to
10
for
a
one-dimensional
array)
may
be
used
where
needed
in
VIC BASIC,
just
as
variables
can
be
used
as
needed.
Arrays
containing
more
than
eleven
elements
need
to
be
"declared"
in
a
Dimension
statement.
Dimension
statements
are
described
later
in
this
and
in
Chapter
3.
An
array
(always
with
subscripts)
and
a
single
variable
of
the
same name
are
treated
as
separate
items
by
VIC BASIC.
Once
dimensioned,
an
array
cannot
be
referenced
with
different
dimensions.
61

Other manuals for Commodore VIC-20

Related product manuals