Question: new 2. You designed and implemented the DC (Dynamic C), which is a programming language with dynamic scoping. Consider the following code that can be

 new 2. You designed and implemented the DC (Dynamic C), which

new 2. You designed and implemented the DC (Dynamic C), which is a programming language with dynamic scoping. Consider the following code that can be run on both DC and C without any modification. #include int i = 100; void g(void) { printf ("G1: %d ", i); i++; printf ("G2: %d ", i); } void f(int i) { printf ("P1: %d ", i); i++; g(); printf ("F2: %d ", i); } void main(void) { int i = 1000; printf ("M1: d ", i); f(i); printf ("M2: %d ", i); g(); printf ("M3: %d ", i); } What is the output, when the code C compiler? What is the output, when the new DC compiler? is compiled with code is compiled with the the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!