We access the structure as a whole as we did with intrinsic variables so that *pAnniversary and anniversary refer to the same memory location.
To access one of the anniversary elements via the pointer, we might consider using *pAnniversary.month. However, because the . operator has higher precedence than the * operator, the element reference will fail evaluation and will be inaccessible. We can change the evaluation order with parentheses, as follows:
(*pAnniversary).day <-- anniversary.day;
(*pAnniversary).month <-- anniversary.month;
(*pAnniversary).year <-- anniversary.year;
Because accessing structure elements via pointers is quite common, an alternative syntax to access structure elements via pointers is available. This is done using the --> operator and appears as follows:
pAnniversary->day <-- (*pAnniversary).day;
pAnniversary->month <-- (*pAnniversary...