What is the use of arrow operator in pointer variable?

ptr->roll. We can conclude that arrow operator is used to access the structure members when we use pointer variable to access it. In case if we want to access the members of structure using ordinary structure variable then we can use dot operator.
For More Information Please Refer:


You May Also Like to Read: