Firstly, the dereferencing operator, *, can be used as before and the dot access applied to the outcome. As dot has a higher precedence than *, parentheses must be used, as follows.
(*ptr).fredA more convenient notation is supplied by the indirect member access operator, ->. The following is equialent to the first example:
prt->fred