Monday, June 13, 2011

6.2 Structures and Functions

  • The only legal operations on a structure are copying it or assigning to it as a unit, taking its address with & and accessing its member
  • Copy and assignment including passing arguments to functions and returning values from function as well
  • Structure may not be compared
  • A structure may be initialized by a list of constant member values; an automatic structure may also be initialized by an assignment

No comments:

Post a Comment