Accessing Objects Through Pointers

Dereferencing a pointer: To access or modify the value stored at the corresponding address. In C, this is done with the * prefix operator.

X = *P;
Looks up the value P is pointing at and stored it in X.

*P = 13.1;
Stores the value 13.1 at the location P points at.
        
*P = X;