← Back to archive

Stdle #35 · integers · 2026-07-11

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: i8 = -1;
const y: u8 = @bitCast(x);
std.debug.print("{d}\n", .{y});
}
Integers
4 attempts left

Answer & explanation