Stdle #9 · strings · 2026-06-15
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 haystack = "hello world"; const idx = std.mem.indexOf(u8, haystack, "world"); std.debug.print("{d}\n", .{idx.?});}Strings