Arrow Operator ->

The -> (arrow) operator is used to access structure or C++ class members using a pointer. A primary expression, followed by an -> (arrow) operator, followed by a name, designates a member of the object to which the pointer points. For example:

   roster -> name

The primary expression must be a pointer to an object of type class, struct or union. The name must be a member of that object.

The value of the expression is the value of the selected member. If the name is an lvalue , the expression value is also an lvalue.



Unions


Dot Operator
Pointers
struct (Structures)