Skip to main content

4 docs tagged with "pointers"

View all tags

const Pointers

const with pointers creates three distinct scenarios. Understanding the difference prevents bugs and documents intent.

Pointer Arithmetic

Pointer arithmetic navigates contiguous memory with automatic scaling by type size. Essential for arrays but dangerous without bounds checking.

Raw Pointers

A pointer is a variable that stores a memory address, allowing indirect access to other variables.

References

A reference is an alias - another name for an existing object. Unlike pointers, references cannot be null, must be initialized, and cannot be reseated.