C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - General Questions (Q.No. 2)
2.
What are the types of linkages?
Internal and External
External, Internal and None
External and None
Internal
Answer: Option
Explanation:
External Linkage-> means global, non-static variables and functions.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.
Discussion:
95 comments Page 7 of 10.

Anitha said:   1 decade ago
How can we print a string without using printf() and any other functions like puts() & get() ?

Swetha said:   1 decade ago
Where do we use this linkages.

Arkadeep said:   1 decade ago
@satish-thanks a lot...but why the term linkage is used for this storage classes?

Swathy said:   1 decade ago
@shan and @komal
external - throughout the program
internal - a single file
none - local to a single function

Sathish narasimman said:   1 decade ago
static example..
int main()
{
printf(" %d",root());
printf(" %d",root());
}
int root()

{

static int i;
i++;
return i;
}

it will print the updated value every time example: o/p=1 2 3 4...


where as if we use int i in the place of static int i, in the root function.. always print 1 1 1 1

Vidvesh said:   1 decade ago
Tell me more about static variables???

Kaamani said:   1 decade ago
I want example program for three linkages.

Komal said:   1 decade ago
I wanna a briefly explain about the linkages.

Kailash said:   1 decade ago
'static' is fixed with respect to time. But dynamic can change with respect to time.

Shan said:   1 decade ago
I wanna a briefly explain about the linkages.


Post your comments here:

Your comments will be displayed after verification.