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 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
Get step-by-step solutions from verified subject matter experts
