Skip to main content

Typedef, structures and unions

  • Chapter
  • 189 Accesses

Part of the book series: Palgrave Master Series ((PMSC))

Abstract

In this chapter we will be examining ways of extending the data types which we have covered in earlier chapters. The three keywords struct, union and typedef enable a great variety of data structures to be created. The ability to create structures to represent complex arrangements of data is a very important part of program design. Often half the battle in solving a problem is getting the data representation correct. Before you work through this chapter you should make sure that you are familiar with the material covered in the earlier chapters. Many of the ideas we will be discussing require a good understanding of the earlier material. In particular you should be happy with arrays of various types and pointers.

“In short, the notion of structure is comprised of three key ideas: the idea of wholeness, the idea of transformation and the idea of self-regulation.”

Jean Piaget

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Copyright information

© 1991 W. Arthur Chapman

About this chapter

Cite this chapter

Chapman, W.A. (1991). Typedef, structures and unions. In: Mastering C Programming. Palgrave Master Series. Palgrave, London. https://doi.org/10.1007/978-1-349-11015-5_10

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-11015-5_10

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-49842-2

  • Online ISBN: 978-1-349-11015-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics