zig/doc/langref/runtime_remainder_division_by_zero.zig

12 lines
190 B
Zig

const std = @import("std");
pub fn main() void {
var a: u32 = 10;
var b: u32 = 0;
_ = .{ &a, &b };
const c = a % b;
std.debug.print("value: {}\n", .{c});
}
// exe=fail