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

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……..!


in Programming by (171 points) | 41 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
50,339 questions
55,763 answers
90,771 users