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:
96 comments Page 4 of 10.

Ousu said:   2 months ago
Can anyone tell me the difference between static and non-static variables?

Keerthana said:   9 years ago
Pre increment - increment the value and then use it.

Post increment - use the value and then increment.

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

Nanthakumar said:   10 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:   10 years ago
What is linkages? Describe in detail.

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

Sruthi said:   1 decade ago
What is a linkage?

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

Output = 6.

Rashmi said:   1 decade ago
What is meant by filescope?

Tiger said:   1 decade ago
@Karthick we use the return in the program because the return any value for example.

#include<stdio.h>
int main()
{
int i=5;
return i;
}

Output of the above program is 5 because it will be return the value of the i.


Post your comments here:

Your comments will be displayed after verification.