Files
learning-zig-rus/src/ex-ch01-04.zig
zed 6bca0507ff On branch main
modified:   src/ch01.md
new file:   src/ex-ch01-04.zig
new file:   src/ex-ch01-05.zig
2023-11-11 00:27:29 +03:00

11 lines
294 B
Zig

const std = @import("std");
pub fn main() void {
// an array of 3 booleans with false as the sentinel value
const a = [3:false]bool{false, true, false};
// This line is more advanced, and is not going to get explained!
std.debug.print("{any}\n", .{std.mem.asBytes(&a).*});
}