Bartleby Related Questions Icon

Related questions

Question
  1. 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
Check Mark