Zig playground

const std = @import("std");

pub fn greet(name: []const u8) void {
    std.debug.print("Hello, {s}!\n", .{name});
}

pub fn main() void {
    greet("World");
}

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software. Many people think of Zig as "better C".

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Zig version:        0.11
sandbox engine:     codapi
sandbox name:       zig
allowed commands:   run, test
in-browser:         ✘

Usage example:

<pre><code>...</code></pre>
<codapi-snippet sandbox="zig" editor="basic"></codapi-snippet>

Documentation