Question: Consider the following pseudocode. What does the program print if the language uses static scoping? What does it print with dynamic scoping? Explain. int

Consider the following pseudocode. What does the program print if the language   

Consider the following pseudocode. What does the program print if the language uses static scoping? What does it print with dynamic scoping? Explain. int a = 1, b = 2, c = 3; int main() { int c = 4; fun1(); return 0; } void fun1() { int a 2, b = 3; fun2(); } void fun2() { } printf("%d %d %d", a, b, c);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!