← Back to archive

Stdle #92 · slices · 2026-09-06

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 a = [_]u8{5} ** 3;
std.debug.print("{d} {d} {d}\n", .{ a[0], a[1], a[2] });
}
Slices
4 attempts left

Answer & explanation