C++
Programming and Technical
Programming
Technical
What do you mean by internal linking and external linking in c++?
Read Solution (Total 2)
-
- When you write an implementation file (.cpp or .cxx or something ). your compiler generate a translation file .this is the your implementation file plus all the header you #included.interenal linking refer to all the linking of transaction unit.
external linking refer to thing exist beyond a particular translation unit. - 9 years agoHelpfull: Yes(0) No(0)
- A global variable has external linkage by default. Its scope can be extended to files other than containing it by giving a matching extern declaration in the other file.
The scope of a global variable can be restricted to the file containing its declaration by prefixing the declaration with the keyword static. Such variables are said to have internal linkage. - 8 years agoHelpfull: Yes(0) No(0)
C++ Other Question