Skip to main content
Top

1982 | OriginalPaper | Chapter

The data structure Array

Author : Professor Dr. Niklaus Wirth

Published in: Programming in Modula-2

Publisher: Springer Berlin Heidelberg

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

So far, we have given each variable an individual name. This is impractical, if many variables are necessary that are treated in the same way and are of the same type, such as, for example, if a table of data is to be constructed. In this case, we wish to give the entire set of data a name and to denote individual elements with an identifying number, a so-called index. The data type is then said to be structured — more precisely: array structured. In the following example, the variable a consists of N elements, each being of type CARDINAL, and the indices range from 0 to N-1.

Metadata
Title
The data structure Array
Author
Professor Dr. Niklaus Wirth
Copyright Year
1982
Publisher
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-96717-7_10

Premium Partner