Stdle #114 · defer · 2026-09-28
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 { defer std.debug.print("1\n", .{}); { defer std.debug.print("2\n", .{}); std.debug.print("3\n", .{}); } std.debug.print("4\n", .{});}Defer