← Back to archive

Stdle #12 · slices · 2026-06-18

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 s = "Hello, World!";
std.debug.print("{s}\n", .{s[7..12]});
}
Slices
4 attempts left

Answer & explanation