Quiz · Functions · lesson 4 of 4
Quiz — the trailing semicolon
Question 1 of 2
What happens when this program is built and run?
fn five() -> i32 {
5;
}
fn main() {
println!("{}", five());
}What happens when this program is built and run?
fn five() -> i32 {
5;
}
fn main() {
println!("{}", five());
}