then use the dot operator.
For example, if
eptr is a structure pointer
of type structure Emp, you can access the structure
member’s name, age, and salary as follows:
(*eptr).name;
(*eptr).age;
(*eptr).salary;
It is mandatory to use parentheses here because the dot operator (.) has a higher precedence
Do'stlaringiz bilan baham: