Question: Consider the below pseudo-code as valid. Use static scoping to identify the printed outcomes; explain your outcomes in brief. int a =1; b = 2;

Consider the below pseudo-code as valid. Use static scoping to identify the printed outcomes; explain your outcomes in brief. int a =1; b = 2; \| Global definition int main() procedure_D() int a = 15, b = 25; printf(a,b); procedure_C(); printf(a,b); procedure_D(); printf(a,b); a=3; b =4; \| Global update: a, b printf(a,b); procedure_E(); } } procedure_E () procedure_C() int a = 60; printf(a,b); procedure.D(); printf(a,b); int b = 6; printf(a,b); a = 7; \\ Global update: a b = 8; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
