Question: var x = 3 var y = 5 function f() { print y var x = x + 1 var y = 7 print x
var x = 3 var y = 5 function f() { print y var x = x + 1 var y = 7 print x } f()
give the result in dynamic scope code and in static scope code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
