Abstract
Arrays are good for dealing with groups of identically typed variables, but they are unsatisfactory for managing groups of differently typed data. To service groups of mixed data, you need to use an aggregate type called a structure. (Other languages, such as Pascal, call this data type a record.) Another aggregate type, called a union (similar to a variant record in Pascal), enables you to interpret the same memory locations in different ways.
Art and science cannot exist but in minutely organized particulars.
William Blake, To the Public
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1996 Springer-Verlag New York, Inc.
About this chapter
Cite this chapter
Darnell, P.A., Margolis, P.E. (1996). Structures and Unions. In: C A Software Engineering Approach. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-4020-4_9
Download citation
DOI: https://doi.org/10.1007/978-1-4612-4020-4_9
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-94675-7
Online ISBN: 978-1-4612-4020-4
eBook Packages: Springer Book Archive