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 ...

Get Programming Techniques Through C: A Beginner's Companion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.