A pointer is a variable that stores the memory address of another variable, giving direct access to memory.