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.
Sagar Prakash pakhale said:
7 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.
Lavanya said:
8 years ago
Can anyone tell me the difference between static and non-static variables? and also about linkages.
Keerthana said:
8 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:
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.
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?
Geetha said:
9 years 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:
9 years ago
What is meant by filescope?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers