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.14
sandbox engine: codapi
sandbox name:   zig
commands:       run, test
in-browser:     ✘

Usage example:

```zig
const std = @import("std");

pub fn main() void {
    std.debug.print("Hello, World!\n", .{});
}
```

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

Documentation