Function definition: Difference between revisions

Added section for ziglang
imported>Joeypas
(Added section for ziglang)
Line 3,674:
pop bc
ret</syntaxhighlight>
 
=={{header|zig}}==
<syntaxhighlight lang="zig">fun multiply(x: i64, y: i64) i64 {
return x * y;
}
 
//example call
const x: i64 = 4;
const y: i64 = 23;
_ = multipy(x, y); // --> 93</syntaxhighlight>
 
=={{header|zkl}}==
Anonymous user