1,714 views
2 votes
2 votes

What is the output???

5 Answers

0 votes
0 votes
In Static Scoping, if a variable is not defined in the Local space, it is looked in Globle Space.

In Dynamic Scoping,  if a variable is not found in the Local space , it is looked in the place, where it recursive called.

in static dynemic

in Part2() k is used as a local variable but  when you make changes in *b then changes will happen in Globel variable.

Related questions

147
views
1 answers
0 votes
Rohit Chakraborty asked Jan 11
147 views
Can you please explain the whole working of the code
475
views
1 answers
0 votes
tishhaagrawal asked Dec 16, 2023
475 views
Below is my approach to solving this question, can anyone please explain if I am doing it the right way?Let X = #free slotssince, m =7 and n = 3So, ... wrong, can anyone explain, please! I am providing a screenshot of their solution below -
241
views
0 answers
0 votes
Dadu asked Dec 7, 2023
241 views
Please solve I am unable to understand the solution given by made easy