Skip to main content

1985 | OriginalPaper | Buchkapitel

The data structure Array

verfasst von : Professor Dr. Niklaus Wirth

Erschienen in: Programming in Modula-2

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

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.

Metadaten
Titel
The data structure Array
verfasst von
Professor Dr. Niklaus Wirth
Copyright-Jahr
1985
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-96878-5_10