Skip to main content
Logo image

Chapter 26 Arrays of Structures

Now that we can conveniently store together information about an object in a structure (such as saving student data in a student_t type variable) we can go one step further and store information about multiple items of this type in an array of structures.
First we need to clarify the order in which operations are executed in a line of code that contains multiple operations, especially now that we have just introduced some new operators such as the direct and indirect member selection operators . and ->.
In this chapter, we will cover the following topics:
  • Operator precedence
  • Working with arrays of structures
  • Dynamically allocating space for arrays of structures