Abstract


Pointee

  • The actual data that a pointer points-to inside the Heap Segment

Pointer Dereference

Null Pointer


Void Pointer


  • A Pointer without type aka a pre-defined size
  • Used when we aren’t sure what the exact size of a variable like the return type of malloc
  • We should always try to cast it to a type whenever it is possible

Rust


Rust Box

Rust References

  • Non-owning pointers that points to Rust Box, thus they do not own the data they point to.
  • Powers Rust Borrowing