← Back to archive

Stdle #59 · formatting · 2026-08-04

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 s = "Zig";
std.debug.print("{d}\n", .{s.len});
}
Formatting
4 attempts left

Answer & explanation