← Back to archive

Stdle #74 · strings · 2026-08-19

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 s1 = "hello";
const s2 = " world";
const combined = s1 ++ s2;
std.debug.print("{s}\n", .{combined});
}
Strings
4 attempts left

Answer & explanation