Previous: 12.4 Unions
Up: 12 Structures and Unions
Next: 12.6 Summary
Previous Page: 12.4 Unions
Next Page: 12.6 Summary
Common errors occur when pointers are used to reference structures and their members. It is best to use parentheses around dereferenced pointers, (*p).member, or to use the operator, ->, e.g. p->member, when referencing a member of a structure pointed to by a pointer.