Quiz · Variables and Types · lesson 12 of 12
Quiz — destructuring a tuple
What does the program print?
fn main() {
let (a, _, c) = (1, "two", 3.0);
println!("{} {}", a + 1, c);
}What does the program print?
fn main() {
let (a, _, c) = (1, "two", 3.0);
println!("{} {}", a + 1, c);
}