Arrays Flashcards
0
Q
What is an array?
A
A single name given to a block if variables with an index value, so an array with 3 variables to store a name might be: name(1), name(2), name(3)
1
Q
When is an array used?
A
When you require a number of variables to store similar data with: a similar name and the same data type.
2
Q
What can you use to look at individual items?
A
Variable index
3
Q
What is a declaration?
A
In order to use an array you have to declare its type and size. This is so that the required number if locations are reserved.
example: DIM value(20) As Integer
Creates the set of integer variables: value(1), value(2), value(3) … value(20)