Smart pointers are modern C++ solving the main problem with raw pointers, memory management and remembering to free heap memory with delete. They should be preferred in any new program.
Linkages, Extern, and Inline
Linkage describes the visibility of variable and function names across translation units. Extern and inline are ways to manipulate that visibility.