Question: Consider the following program which is written in C syntax: int x = 1 ; void f 1 ( ) { int x = 2
Consider the following program which is written in C syntax: int x ; void f int x ; f; printfx void f int x ; printfx int main f; printfx H a What will be printed after running main when it uses static scoping? b dynamic scoping?
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
