1.

Describe Linkages And Types Of Linkages?

Answer»

When we declare identifiers within the same scope or in the DIFFERENT scopes they can be made to refer the same object or function with the help of likages. 

There are three types of linkages: 

  • External linkage 
  • INTERNAL linkage 
  • None linkage

EXternal Linkages means 'global, non-static' functions or VARIABLE.

Example: extern INT a1

Internal Linkages means static variable and functions. Example: static int a2

None Linkages means local variables.

Example : int a3

When we declare identifiers within the same scope or in the different scopes they can be made to refer the same object or function with the help of likages. 

There are three types of linkages: 

EXternal Linkages means 'global, non-static' functions or variable.

Example: extern int a1

Internal Linkages means static variable and functions. Example: static int a2

None Linkages means local variables.

Example : int a3



Discussion

No Comment Found