Topic 9
Topic 9
0 Arrays
Many applications require the processing of multiple data items that have common
characteristics.
An array is a collection of homogeneous data items.
The individual data items can be characters, integers, floating point numbers etc. However, they
must be of the same type.
Secondary data type which is indexed
Each array element is referred to by specifying the array name followed by one or more
subscripts (thus arrays are sometimes referred to as subscripted data type), with each subscript
enclosed in square brackets.
X
10 20 30 40 50 …