CHAPTER 10
Structures
Structures are one of the very important features available in C. These are chiefly used to build various types of data structures that are generally used in the domain of computers. In this chapter the meaning of structures, defining a structure, declaring structure variables and using structure variables are discussed with the aid of some simple examples.
Things that exist around us in reality are called entities. These entities are identified by a name and will have a number of properties associated with each of them. A book, a student, a car, a date are all some examples of entities. Some of the properties or attributes associated with each one of these named entities are given in the following table.
The relationship ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access