C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 2)
2.
What are the types of linkages?
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.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.
Discussion:
95 comments Page 4 of 10.
Keerthana said:
9 years ago
Pre increment - increment the value and then use it.
Post increment - use the value and then increment.
Post increment - use the value and then increment.
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.
#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:
10 years 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.
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?
Anil said:
1 decade 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.
int main()
{
int i = 2;
int j = ++i + i;
printf("%d\n", j);
}
Output = 6.
How is it possible? Please give me an explanation.
Karthick said:
1 decade ago
Why we use return in program?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers