If you attend class on
9/30,
you will have a chance to do this
assignment in-class for the
C14 grade
Consider the following A program:
int a; fn : () void v{ a = a + 1; console << a; } fn : () void w{ a = 7; v(); console << a; } fn : () void main{ int a; w(); console << a; }
Does this program compile in a static scoping scheme? In a dynamic scoping scheme? What is the output for each scheme in which it compiles?