a) Draw the parse tree for A=B+C-D-E b) Assuming A, B, D and E are int and C is in float type, show the flow of attribut
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
a) Draw the parse tree for A=B+C-D-E b) Assuming A, B, D and E are int and C is in float type, show the flow of attribut
a) Draw the parse tree for A=B+C-D-E b) Assuming A, B, D and E are int and C is in float type, show the flow of attributes in the parse tree you draw for part a 2. You designed and implemented the DC (Dynamic c), which is a new programming language with dynamic scoping. Consider the following code that can be run on both DC and c. #include <stdio.h> int i = 100; void g(void) printf ("G1: %d\n", i); i++; printf ("G2: %d\n", i); } void f(int i) { printf ("F1: %d\n", i); i++; g(); printf ("F2: %d\n", i); void main(void) { int i = 1000; printf ("M1: %d\n", i); f(i); printf ("M2: %d\n", i); g(); printf ("M3: %d\n", i); } is is What the output, when the code compiled with the C compiler? What is the output, when the code is compiled with the new DC compiler? Explain your answer in step-by-step detail.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!