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 5 of 10.

Priya said:   1 decade ago
You must initialize the i with a value because it will take a garbage value by default.

Syeda said:   1 decade ago
For increment operators why we are begining from right most?

Its left priority right?

Harsh said:   1 decade ago
Can anyone explain the answer of this: z = (x++ + ++x)x = 2. And z = (++x + x++)x = 2.

Purnima said:   1 decade ago
Can you give me the brief explanation about linkages and what are the storage classes?

Sonali said:   1 decade ago
I'm still confuse in that z value, will it be 5 or 6? and how?

@Shibu and @ Praveen.

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

Shwetha said:   1 decade ago
@Dixn.

How at end it became 7?

I didn't understand. Can you explain again please.

Manukumar said:   1 decade ago
What is linkages? how it affects the c program in terms of memory or storage class?

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

Gaurav said:   1 decade ago
x= 5;
z = ++x + ++x ;
cout<<z;

why does this display 14 , instead of 13 ?


Post your comments here:

Your comments will be displayed after verification.