{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Dale - Computer Science Illuminated 286

Dale - Computer Science Illuminated 286 - 8.3 Functionality...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
8.3 Functionality of Imperative Languages 259 * S8D‘22_F‘S2 is a record type; ;9_* S8D‘22 is a record variable. ;9_* S8D‘22 can be passed as a parameter, and the items within it can be accessed by giving their individual names. In our three examples, each name is a combination of the record name and the item name with a dot in between. Some languages allow the items within a record to be a subpro- gram. We look at how this is done when we look at the additional func- tionality of object-oriented languages in the next section. Arrays An array is a named collection of homogeneous items in which indi- vidual items are accessed by their place within the collection. The place within the collection is called an index . Some languages call the first place in the collection the 0th item and some languages allow the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}