Functions
Functions are the fundamental building block of any application in Silicon.
extern fn printf(format: string, ...): i32;
fn hello_world() {
printf("%s\n", "Hello World!");
}
fn main() {
printf("%s\n", "Calling hello_world function...");
hello_world();
}
Function Parameters
Last updated