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:
96 comments Page 5 of 10.
BALAMURUGAN said:
1 decade ago
How you can classify those linkages respectively. Please tell me.
Ashwini said:
1 decade ago
@Saiba Murmu.
GCC compiler also giving the result : 8.
Check it once.
GCC compiler also giving the result : 8.
Check it once.
Ashwini said:
1 decade ago
What is the difference between that all three linkages?
Sarathi said:
1 decade ago
Difference between GCC and TCC compiler?
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?
Kasthuri said:
1 decade ago
@Kavitha.
It will give only 8 as the output.
It will give only 8 as the output.
Manoj said:
1 decade ago
@Kavitha.
It will give the output 8 only!
It will give the output 8 only!
Kavitha said:
1 decade ago
#include<stdio.h>
int main()
{
int x=3;
int z;
z=++x + x++;
printf("%d",z);
}
It gives the output 9,how?
int main()
{
int x=3;
int z;
z=++x + x++;
printf("%d",z);
}
It gives the output 9,how?
Silpi roy said:
2 decades ago
What are linkages?
Sameer said:
1 decade ago
What is the meaning of functions of filescope?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers