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.

 

- 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;