Skip to main content
Top

1982 | OriginalPaper | Chapter

Record Types

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 …

In an array all elements are of the same type. In contrast to the array, the record structure offers the possibility to declare a collection of elements as a unit even if the elements are of different types. The following examples are typical cases where the record is the appropriate choice of structuring method. A date consists of three elements, namely day, month, and year. A description of a person may consist of the person’s names, sex, identification number, and birthdate.

Metadata
Title
Record Types
Author
Professor Dr. Niklaus Wirth
Copyright Year
1982
Publisher
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-96717-7_20

Premium Partner