← Back to archive

Stdle #175 · formatting · 2026-11-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 {
std.debug.print("{d:0>5}\n", .{@as(u32, 42)});
}
Formatting
4 attempts left

Answer & explanation