CHAPTER

11

Structures

11.1 Structures and Structure Variables

11.2 Manipulation of Structures

11.3 Structures and Functions

11.4 Nested and Self-Referential Structures

11.5 Union and Enumeration Data Types

11.6 Sample Programs

Chapter Summary

Exercises

Objectives

A structure is a derived data type designed to group variables of different data types that are related as a unit called a record.

A structure in C is a derived data type derived from the built-in basic data types int, float, double, and char, and the derived data types: arrays, strings, and pointers. A structure data type groups related data items of different data types to form a cohesive unit called a record. In many engineering and scientific applications there are data records ...

Get C Programming for Scientists and Engineers with Applications 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.