Question: [10 points] Determine the symbol table and output for the following code: # include // line 1 int a = 98; char b = 't';
- [10 points] Determine the symbol table and output for the following code:
# include
int a = 98; char b = 't'; int q(char b) {
int a = 88;
printf ("%c ",a); printf("%d ",b); // line 7
return a;
}
void p() {
double b = 5.6;
printf("%c ",a);
printf("%f ",b); // line 13
a = q(a);
}
main() {
char a = 'k';
printf("%c ",b); // line 17
p();
return 0;
}
- Using static scoping determine the symbol table at lines: 7, 13, and 17
- Using dynamic scoping determine the symbol table at lines: 7, 13, and 17
- Using static scoping determine the output
- Using dynamic scoping determine the output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
