← Back to archive

Stdle #83 · slices · 2026-08-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 {
const a: [3]u8 = .{ 1, 2, 3 };
const b: [3]u8 = .{ 1, 2, 3 };
std.debug.print("{}\n", .{std.mem.eql(u8, &a, &b)});
}
Slices
4 attempts left

Answer & explanation