Related questions
Question
- What will the output of the following program be?
fn mutate_no_to_zero(mut param_no: i32) {
param_no=param_no*0;
print!("param_no value:{}",param_no);
}
fn main(){
let no:i32=7;
mutate_no_to_zero(no);
println!(" Value of no:{}",no);
}
Group of answer choices
param_no value:7 Value of no:0
param_no value:0 Value of no:0
. param_no value:0 Value of no:7
param_no value:7 Value of no:7
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