Abstract

The built-in data types discussed so far are scalar types — this means that each instance of the type has a single value at any one time. A structured data type is one in which a collection of values is referred to by a single name. Individual elements within the collection are accessed via a selection mechanism. Modula-2 provides four structured data types: arrays, records, sets and files. The first three, which refer to internal data structures, are discussed in this chapter. Files and file handling are discussed in the following chapter.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.