zig/doc/langref/assign_undefined.zig

10 lines
145 B
Zig

const print = @import("std").debug.print;
pub fn main() void {
var x: i32 = undefined;
x = 1;
print("{d}", .{x});
}
// exe=succeed