← Back to archive

Stdle #50 · integers · 2026-07-26

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: i32 = @as(i32, @intCast(@as(u16, 1000)));
std.debug.print("{d}\n", .{x});
}
Integers
4 attempts left

Answer & explanation