Stdle #147 · structs · 2026-10-31
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 { const Outer = struct { inner: struct { value: i32 }, }; const obj: Outer = .{ .inner = .{ .value = 42 } }; std.debug.print("{d}\n", .{obj.inner.value});}Structs