CHAPTER 6
Pointers to Structures
A structure is a collection of variables within one variable. Structures can be termed as a variable that aggregates variables of different or similar types. The correlation of structures and pointers is very strong. A structure provides a very intuitive way to model user-defined entities (records, packet formats, image headers, etc.). This chapter explains the basics of structures and their use with pointers; it also explains how structures can be used to implement data structures like trees, linked lists, etc. in depth.
Defining Structures
The keyword in C that is used to define a structure is struct. Structures ...
Get Pointers in C: A Hands on Approach 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.