Pointers in C++ — a practical guide to C++ pointers with clear examples you can reuse in real projects.
C++ Tutorial Series (46/111). Prefer one article? Read the complete C++ tutorial.
Short description
Raw pointers are fine for non-owning observation.
Pointer
int x = 10;
int* p = &x;
std::cout << *p << 'n';