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 1 of 10.
Manoj mehra said:
5 years ago
In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static keyword is used in C to restrict the visibility of a function or variable to its translation unit.
(8)
Nali srikanth said:
6 years ago
Static variable is a fixed.
Non static variable can be changed.
None linkage means local variable.
Non static variable can be changed.
None linkage means local variable.
(6)
Sudhanshu Kumar said:
7 years ago
Please tell definition of linkages.
(4)
Neha said:
7 years ago
What is linkages?
(2)
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.
#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.
Aliya said:
1 decade ago
@Praveen:
Why the evaluation is done from the right most i.e; x++.
++x=3; the value of x=3.
x++=3; we do not increment here since its a post inc.
++x + x++ = 6?
Why aren't we considering pre inc first?
Why the evaluation is done from the right most i.e; x++.
++x=3; the value of x=3.
x++=3; we do not increment here since its a post inc.
++x + x++ = 6?
Why aren't we considering pre inc first?
Karthick said:
1 decade ago
Why we use return in program?
Priya said:
1 decade ago
You must initialize the i with a value because it will take a garbage value by default.
Gowthami said:
1 decade ago
What is meant by external linkage?
Harsh said:
1 decade ago
Can anyone explain the answer of this: z = (x++ + ++x)x = 2. And z = (++x + x++)x = 2.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers