Hello World in Zig

Published on 09 October 2020 (Updated: 09 October 2020)

Welcome to the Hello World in Zig page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

const std = @import("std");

pub fn main() !void {
    const stdout = std.io.getStdOut().writer();
    try stdout.writeAll("Hello, World!\n");
}

Hello World in Zig was written by:

If you see anything you'd like to change or update, please consider contributing.

Note: The solution shown above is the current solution in the Sample Programs repository as of Aug 22 2023 09:32:18. The solution was first committed on Oct 09 2020 03:30:19. As a result, documentation below may be outdated.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.