A
Q. What is the output of this code?
Code:
fn main() {
let mut x = 5;
x += 1;
println!("{}", x);
}
let mut x = 5;
x += 1;
println!("{}", x);
}
- Correct Answer - Option(B)
- Views: 6
- Filed under category Rust
- Hashtags:
Discusssion
Login to discuss.