You are on page 1of 1

http://www.exforsys.com/tutorials/c-language/c-pointers.

html

Introduction:
In C language, a pointer is a variable that points to or references a memory location in
which data is stored. Each memory cell in the computer has an address which can be used
to access its location. A pointer variable points to a memory location. By making use of
pointer, we can access and change the contents of the memory location.

Pointer declaration:
A pointer variable contains the memory location of another variable. You begin the
declaration of a pointer by specifying the type of data stored in the location identified by the
pointer. The asterisk tells the compiler that you are creating a pointer variable. Finally you
give the name of the pointer variable. The pointer declaration syntax is as shown below.

type * variable name

You might also like