When is arrow operator used?

But when pointer to a structure is used then arrow operator is used. Both dot and arrow operator serves same function to access member of structure. Lets compare dot operator and arrow operator –. We can conclude that arrow operator is used to access the structure members when we use pointer variable to access it.
For More Information Please Refer:

You May Also Like to Read: