Study
C++ · Pointers
What a pointer is, & and * operators, nullptr, pointer arithmetic over an array, and why dangling pointers are dangerous.
- A pointer is a variable that holds a memory address.
- Dereferencing a null or dangling pointer is undefined behaviour, so always know what a pointer points to.