Given the following Rust-like program, answer the following question.
Assuming static scoping rules the value of x that is printed after fun3 is called will be
Assuming dynamic scoping rules, the value x that is printed after fun3 is called will be
let x = 5;//Global fn funl(){
println!("%d", x);
}
fn fun2(){
X += lj
funl();
fn fun3(){
let x = 1; fun2();
//Program starts here.
fn main(){
fun3();
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here