expertblr
asked on
Need explanation on Symbol table
Hi experts,
Can anybody explain me the concept on symbol tables in detail with a small c program example?
I need the explation to address the following questions:
+ Why it is needed ? what is the use of it?
I know I may be asking a silly question , but I need an excellet answers from the experts.
Thanks
Can anybody explain me the concept on symbol tables in detail with a small c program example?
I need the explation to address the following questions:
+ Why it is needed ? what is the use of it?
I know I may be asking a silly question , but I need an excellet answers from the experts.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That it does, but I didn't need any code so.... :) Understanding concept is what homework is all about.
#include <stdio.h>
main(){
int i=1;
printf("%d\n",i);
}
the compiler need to know that the first i refers to the same variable as the second i
it also needs to know what printf is.
To keep track of these things, it uses a symbol table
main(){
int i=1;
printf("%d\n",i);
}
the compiler need to know that the first i refers to the same variable as the second i
it also needs to know what printf is.
To keep track of these things, it uses a symbol table
ASKER
Thanks routinet. I appricate your help without listening to others for whom it may look as an homework assignment. Full pioints to you routinet.
Why it is needed ?
what is the use of it?]
Sounds more like a home work assignment to me