CREATE OWN LIBRARY

Symbol Table:

 

Symbol table contains all type of symbol used in this program like data type int, float, variables name, system define (printf(), scanf()) and user defined (sum()) functions etc.

 

All symbols are stored in a symbol table by their name and with a specific address (if any) where they located in the program i.e. called defined symbol like sum() (user-defined function) but some symbols are not defined in the program so, they store in symbol table without any specific address location like printf(), scanf(), sqrt(), etc. 

 

 

In the case of defined symbol, we can get the address of the symbol directly from the symbol table but this address is the relocatable address and this symbol is called a resolved symbol. Like here the sum is user define function i.e. define in this program so, it has a specific known relocatable address 100.

 

But those symbols which is undefined i.e. we can’t get the address from symbol because it is not defined in this program code is called an unresolved symbol.