C struct, typedef, enum & union - Tenouk C & C++
C struct, typedef, enum & union - Tenouk C & C++
C struct, typedef, enum & union - Tenouk C & C++
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
STRUCT, TYPEDEF, ENUM & UNIONAccessing the Structure Member• A "member-selection expression" refers tomembers of <strong>struct</strong>ures (and <strong>union</strong>s, classes).• Such an expression has the value and type of theselected member.• The member access operators . (dot) and ->(arrow: minus + greater than symbols) are usedto refer to members of <strong>struct</strong>ures (also <strong>union</strong>sand classes).• Member access expressions have the value andtype of the selected member.• There are two methods that can be used toaccess the members using dot or an arrowoperator.www.tenouk.com, © 22/93