Related questions
Question
- What would the output of the following program be?
fn main() {
let v1 = vec!["A", "B", "C"];
let v1_iter = v1.iter();
for val in v1_iter {
print!("Item: {} ", val);
}
}
Group of answer choices
A, B, C
Item: A
Item: A Item: B
Item: A Item: B Item: C
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 1 images