← Back to archive

Stdle #118 · integers · 2026-10-02

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 n: u32 = 12345;
std.debug.print("{d}\n", .{@clz(n)});
}
Integers
4 attempts left

Answer & explanation