← Back to archive

Stdle #150 · strings · 2026-11-03

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 a = "abc";
const b = "abc";
std.debug.print("{}\n", .{a.ptr == b.ptr});
}
Strings
4 attempts left

Answer & explanation