Variable Representation in memory

A pointer is a variable which contains the memory location of another variable. You start 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. Then give the name of the variable.

Syntax
type * variable name

Example:
int *ptr;
float *string;

Back