Stdle #135 · pointers · 2026-10-19
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");pub fn main() void { var x: i32 = 10; const ptr = &x; ptr.* = 25; std.debug.print("{d}\n", .{x});}Pointers