- Forgetting the semicolon that terminates a structure definition is a syntax error.
- Assigning a structure of one type to a structure of different type is a compilation error.
- Inserting space between the - and > components of the structure pointer operator is a syntax error.
- Attempting to refer to a member of a structure by using only the member's name is a syntax error.
- Not using parentheses when referring to a structure member that uses a pointer and structure member operator is a syntax error.
- Assuming that structures, like arrays, are automatically passed by reference and trying to modify the caller's structure values in the called function is a logic error.
More Informative Posts