Home Segments Index Top Previous Next

Chapter 16:

How To Create Structures and Objects

To describe a stock trade, you think naturally in terms of the price per share of stock and number of shares traded.

Thus, the numbers that describe a trade constitute a natural bundle—a bundle of two numbers for each trade that belongs to the trade category.

In this chapter, you learn that C offers mechanisms that enable you to describe, construct, and manipulate bundles of descriptive data items that mirror real-world concepts such as individual and category.