C Pointer Syntax

Declare a pointer: int *ptr;

Assign the address of a variable to a pointer: int num = 5; ptr = #

Dereference a pointer to obtain the value of the variable it points to: int value = *ptr;

Allocate memory for a pointer using dynamic memory allocation: int *ptr = new int;

Deallocate memory for a pointer: delete ptr;