O'Reilly logo

C Primer Plus, Fifth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 14STRUCTURES AND OTHER DATA FORMS

You will learn about the following in this chapter:

• Keywords:

struct, union, typedef

• Operators:

. ->

• What C structures are and how to create structure templates and variables

• How to access the members of a structure and how to write functions to handle structures

• C’s typedef facility

• Unions and pointers to functions

One of the most important steps in designing a program is choosing a good way to represent the data. In many cases, a simple variable or even an array is not enough. C takes your ability to represent data a step further with the C structure variables. The C structure is flexible enough in its basic form to represent a diversity of data, and it enables you to invent new forms. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required