← Back to archive

Stdle #51 · integers · 2026-07-27

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 x: u8 = 0b10000000;
std.debug.print("{d}\n", .{@clz(x)});
std.debug.print("{d}\n", .{@ctz(x)});
}
Integers
2 lines
4 attempts left

Answer & explanation