Question: Given the following codes int x = 0; inty malloc(sizeof(int)); while(x < 10) { int z = 0; int y =x; while (y <
Given the following codes int x = 0; inty malloc(sizeof(int)); while(x < 10) { int z = 0; int y =x; while (y < 10) { z = z + y; y = y + 1; 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: } 11: *y = x; a) Vrite the symbol table indicating the type of variables in line 4 b) In (5a) write the symbol table indicating the type of variables in line 11 } c) After the first iteration of the following analysis write the in and out sets for each node. 1: x- 2: y = b 3: if (x 0) 4: y = y + z 5: y = y - z 6: z = y
Step by Step Solution
There are 3 Steps involved in it
Answer Lets analyze ... View full answer
Get step-by-step solutions from verified subject matter experts
