Quiz · Functions · lesson 2 of 4
Quiz — a parameter without a type
What happens when this program is built and run?
fn add(a, b) -> i32 {
a + b
}
fn main() {
println!("{}", add(2, 3));
}What happens when this program is built and run?
fn add(a, b) -> i32 {
a + b
}
fn main() {
println!("{}", add(2, 3));
}