← Back to archive

Stdle #56 · math · 2026-08-01

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

Answer & explanation