← Back to archive

Stdle #95 · integers · 2026-09-09

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 {
var arr = [_]i32{ 1, 2, 3 };
const ptr: [*]i32 = &arr;
ptr[1] = 99;
std.debug.print("{d}\n", .{arr[1]});
}
Integers
4 attempts left

Answer & explanation