zig/test/cases/binary_operands.4.zig

13 lines
167 B
Zig

pub fn main() u8 {
var i: u8 = 5;
i += 20;
var result: u8 = foo(i, 10);
return result - 35;
}
fn foo(x: u8, y: u8) u8 {
return x + y;
}
// run
//