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

Jyothsna said:   9 years ago
Please give information about incremental and decremental values.

Nanthakumar said:   9 years ago
@Anil.

#include <stdio.h>
int main()
{
int i = 2;
int j = ++i + i;
printf("%d\n", j);
}
I=2
First pre inc I=3.

Then latest value of i is 3 only no post inc can accessed in (++I)+(i)
So, 3+3 is equal to 6.

Arpita said:   9 years ago
What is linkages? Describe in detail.

Nufiqa said:   9 years ago
Give me the clear difference between static, non-static &local variables.

Sruthi said:   9 years ago
What is a linkage?

Geetha said:   9 years ago
#include <stdio.h>
int main()
{
int i = 2;
int j = ++i + i;
printf("%d\n", j);
}

Output = 6.

Rashmi said:   9 years ago
What is meant by filescope?

Anil said:   9 years ago
#include <stdio.h>
int main()
{
int i = 2;
int j = ++i + i;
printf("%d\n", j);
}

Output = 6.

How is it possible? Please give me an explanation.

BALAMURUGAN said:   9 years ago
How you can classify those linkages respectively. Please tell me.

Ashwini said:   9 years ago
@Saiba Murmu.

GCC compiler also giving the result : 8.
Check it once.


Post your comments here:

Your comments will be displayed after verification.