Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>-> indirect structure reference operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ->                      Indirect Structure Reference Operator

 structptr->field        indirect reference of structure
 structptr               a pointer to a structure
 field                   any member of the structure

    The -> operator is a convenient shorthand for referencing a field of
    a struct pointed to by a pointer.  It replaces the equivalent--but
    clumsy--expression:

                      (*structptr).member

    Note that member can refer to either data or functions.


See Also: .

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson