← Back to archive

Stdle #41 · comptime · 2026-07-17

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}\n", .{@sizeOf(bool)});
}
Comptime
4 attempts left

Answer & explanation