Skip to main content

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

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics