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

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

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

                      (*structptr).field

See Also: .

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