Declaring Pointers

Pointers are special types of variables. They are declared like other variables but are distringuished from non-pointer variables by the additional of the reference operator (which is the '*' character).

To delcare a byte variable called FRED we would use the statment

	byte FRED

To delcare FRED as a pointer to a byte variable we would use the statment

	byte * FRED

To declare the pointer such that it points to something in the CODE memory of the processor instead of the RAM use the const qualifier

	byte * const FRED

Further examples of declareing pointer variables

pointer to unsigned 8 bit integer held in RAM

	byte * ptr
pointer to unsigned 8 bit integer held in CODE memory
	byte * const ptr
pointer to unsigned 16 bit integer held in RAM
	uint * ptr
pointer to unsigned 16 bit integer held in CODE memory
	uint * const ptr
pointer to unsigned 32 bit integer held in RAM
	ulong * ptr
pointer to unsigned 32 bit integer held in CODE memory
	ulong * const ptr