Previous: 12.4 Unions
Up: 12 Structures and Unions
Next: 12.6 Summary
Previous Page: 12.4 Unions
Next Page: 12.6 Summary

12.5 Common Errors

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.

tep@wiliki.eng.hawaii.edu
Sat Sep 3 07:12:43 HST 1994