pointers in cpp

Declare a pointer variable:

int* ptr;

Assign the address of a variable to the pointer:

int num = 5;
ptr = #

Access the value pointed to by the pointer:

int value = *ptr;

Modify the value through the pointer:

*ptr = 10;