Dereferencing a pointer

Dereferencing a pointer means retrieving the actual data of the  pointer. Dereferencing a pointer can be done by writing pointer followed by *.

Example:

Here p points address of x. Now we can retrieve the value of x as follows:
*p;

Code example:

output

value of x = 25.150000


Next Previous