0PricingLogin
Zig Academy · Lesson

Many-Item Pointers [*]T

Address a run of elements.

Pointing at a Run

Sometimes a pointer addresses not one value but the start of a sequence of values laid out in memory. 🧱

The [*]T Type

A many-item pointer is written [*]T. The star inside the brackets means it points at an unknown number of T values in a row.

var run: [*]u8 = undefined;

All lessons in this course

  1. Single-Item Pointers with *T
  2. Dereferencing with ptr.*
  3. Many-Item Pointers [*]T
  4. Const Pointers and Alignment
← Back to Zig Academy