[The
meaning of an expression using the dereference operator (*) is very different from one that does not: When this
operator precedes the pointer name, the expression refers to the value being pointed, while when a pointer name
appears without this operator, it refers to the value of the pointer itself (i.e. the address of what the pointer is
pointing to).][/output]
I AM A LITTLE BIT CONFUSED HERE AND NEED HELP IF WITH EXAMPLE WILL BE MUCH APPRECIATED.
int x;
int* p;
p=&x; //assigns the address of x to the pointer variable p
*p=5; //uses the dereference operator to assign 5 to what p is pointing to (x)