consider the following C code
#define a(x+1)
int x=2;
void b()
{
x=9;
printf("%d\n”,a);
}
void c()
{
int x=1;
printf("%d\n”,a);
}
void main()
{
b();
c();
}
which of the following is true output if dynamic scooping is used
- ) 3,2
- ) 10,2
- ) 2,10
- ) 9,2
I calculated the right answer but now i want to ask what is the value of global x after the program execution
is it 9 ,10 ??