← Back to archive

Stdle #178 · integers · 2026-12-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 = 0b11110000;
const y: u8 = 0b10101010;
std.debug.print("{b:0>8}\n", .{x & y});
std.debug.print("{b:0>8}\n", .{x | y});
}
Integers
2 lines
4 attempts left

Answer & explanation