Changes between Version 28 and Version 29 of ResumedC


Ignore:
Timestamp:
Jun 4, 2009, 6:33:43 PM (15 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v28 v29  
    229229      { 12, 0 }
    230230   };
     231}}}
     232
     233In order to reference an element of a structure we use the "'''.'''" (dot) symbol, but if the structure is a pointer, then we need to use '''->'''
     234{{{
     235#!C
     236  /* Element of a structure */
     237 point.horiz
     238  /* Same thing if the structure is a Pointer */
     239 point->horiz
     240  /* that is equivalent to: */
     241 (*point).horiz
    231242}}}
    232243