← Back to archive

Stdle #152 · integers · 2026-11-05

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{ 1, 2, 3 };
const b = a ** 3;
std.debug.print("{d}\n", .{b.len});
std.debug.print("{d} {d} {d}\n", .{ b[3], b[4], b[5] });
}
Integers
2 lines
4 attempts left

Answer & explanation