C Programming Tutorial
Computer Tutorial

Pointer



Pointer

A pointer is a variable that holds a memory address of an other variables. This address is the location of another object (typically another variable) in memory. For example, if one variable contains the address of another variable, the first variable is said to point to the second.

The general form of pointer is :
variable type      *name of pointer ;
Ex:
int *p;
float *dec;
char *name;

Diagram to show Variable Stodred in Memory

Variable Stodred in Memory