Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Pointers and Arrays #7

@oldoc63

Description

@oldoc63
  • Pointers share several characteristics with arrays:
    • Pointers encode object location.
    • Arrays encode the location and length of contiguous objects.
  • At the slightest provocation, an array will decay into a pointer.
int key_to_the_universe[]{ 3, 6, 9 };
int* key_ptr = key_to_the_universe; // Points to 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions