← Back to archive

Stdle #55 · integers · 2026-07-31

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 a: i32 = 300;
const b: u8 = @intCast(a & 0xFF);
std.debug.print("{d}\n", .{b});
}
Integers
4 attempts left

Answer & explanation