8.3Functionality of Imperative Languages259* S8D‘22_F‘S2is a record type; ;9_* S8D‘22is a record variable.;9_* S8D‘22can be passed as a parameter, and the items within it can beaccessed by giving their individual names. In our three examples, eachname is a combination of the record name and the item name with a dot inbetween. 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.ArraysAn array is a named collection of homogeneous items in which indi-vidual items are accessed by their place within the collection. The placewithin the collection is called anindex. Some languages call the firstplace in the collection the 0th item and some languages allow the
This is the end of the preview.
access the rest of the document.