murder_a2z wrote:
>
> what is pointer and how to use them
>
>  
A pointer is a variable that holds the memory address of another 
object.  For
example, if a variable called p contains the address of another variable 
called q,
then p is said to point to q.  Therefore if q is at location 100 in 
memory, then p
would have the value 100.

To declare a pointer variable, use this general form:
    type *var-name; (int *p;)
Here, type is the base type of the pointer.  The base type specifies the 
type
of the object that the pointer can point to.

C contains two special pointer operators: * and &.  The & operator 
returns the
address of the variable it precedes.  The * operator returns the value 
stored at
the address that it precedes.

Reply via email to