The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
39 views

Can Anyone give a Best example for Internal and External Linkage in c/c++

I know what is internal and external linkage but still am confusing about what is the Translation Unit ,file ,Program.

Internal Linkage:The variables which are accessed only inside the file(translation unit) are called internal Linkage.

External Linkage:The variables/functions are accessed throughout the program are called External Linkage.

If anyone gives a better example describing each term with full code it will be helpful to me…………

thank you……..!

 

asked in Programming by (171 points) | 39 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,808 questions
54,481 answers
188,247 comments
74,517 users