Values & References4 / 18
Up next

Dereference with .*

const std = @import("std");

pub fn main() void {
    const n: i32 = 10;
    const r = &n;
    // .* reads through the pointer
    std.debug.print("{d}\n", .{r.* + 1});
}
What you're solving

.* reads the value behind a pointer