an integer expression.
4. You must differentiate between an array index and the values stored in an array at a particular
index.
5. An array may hold at most the number of elements specified by its size.
It may hold no data if
the size is 0.
6. An array name followed by a subscript enclosed within the square brackets refers to the
individual elements in it.
7. The subscript can be
byte, short, char,
or
int.
it cannot be
long type.
8. The elements are stored in
consecutive/successive memory locations.
9.
Subscripted array variables are treated as ordinary variables.
10.
Subscripted array variables use the subscript enclosed within square brackets whereas
ordinary variables do not have any subscript.
11. By incrementing the value of the subscript by 1, the data stored in the subsequent memory
location is obtained.
Do'stlaringiz bilan baham: |