If you attend class on
2/20,
you will have a chance to do this
assignment in-class for the
C14 grade
Consider the following Jeff 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?