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:
a) External linkage b) Internal linkage c) 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
a) External linkage b) Internal linkage c) 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
No comments:
Post a Comment