C Syntax Pointers

 

- Info:

- Pointer is variable which holds memory address.

- You can define what type of data is stored at that address or use void instead.

- Additional info can be found at:

http://www.cs.cf.ac.uk/Dave/C/node10.html#SECTION001030000000000000000.

http://unixwiz.net/techtips/reading-cdecl.html

 

- Pointer to Primitive Type:

int i = 10;

int (*pti) = &i;

 

- Pointer to Array of Primitive Types:

int a[4] = {10,11,12,13};

int (*pta)[4] = &a;