A pointer is a variable that stores the memory address of another variable.
int* p = &x;
Introduction to Pointers
C++ Masterclass: From Zero to Hero
C++ Masterclass: From Zero to Hero
A pointer is a variable that stores the memory address of another variable.
int* p = &x;