mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 08:34:42 +08:00
3a0aecd81e
The zig compiler is way behing on opensuse. I tried building zig from source but encountered many compile errors. I'll wait until opensuse is updated.
20 lines
359 B
Zig
20 lines
359 B
Zig
const std = @import("std");
|
|
const print = std.debug.print;
|
|
|
|
const a: u8 = 1;
|
|
const b: u32 = 10;
|
|
const c: i64 = 100;
|
|
const d: isize = 1_000;
|
|
|
|
const e: u21 = 10_000;
|
|
const f: i42 = 100_000;
|
|
|
|
const g: comptime_int = 1_000_000;
|
|
const h = 10_000_000;
|
|
const i = '💯';
|
|
|
|
pub fn main() !void {
|
|
print("integer: {d}\n", .{i});
|
|
print("unicode: {u}\n", .{i});
|
|
}
|