Here let us discuss about what is external linkage ? .
In global scope, identifiers for the following kinds of entities declared without the static storage class specifier have external linkage:
We can do consider soft links - can say symbolic soft link
ln -s dest src file
here we create symbolic link for the file exists. it just a replicate of existing file, for convenient and version library changes we create symbolic links .. however the reference to the library is same ...
I think this would be best example for the external linkage ..
External linkage - is a linkage to the global scope identities declared on different files.
Ex: extern int sum(int); extern int number;
In global scope, identifiers for the following kinds of entities declared without the static storage class specifier have external linkage:
- Anobject --- variable
- A function -- always external, there is no function can be defined within another function
We can do consider soft links - can say symbolic soft link
ln -s dest src file
here we create symbolic link for the file exists. it just a replicate of existing file, for convenient and version library changes we create symbolic links .. however the reference to the library is same ...
I think this would be best example for the external linkage ..
External linkage - is a linkage to the global scope identities declared on different files.
Ex: extern int sum(int); extern int number;
No comments:
Post a Comment