Question
int main()
{
extern int a;
printf("%d\n", a);
return 0;
}
int a=20;
In the following program where is the variable a getting defined and where is it getting declared ?
int main()
{
extern int a;
printf("%d\n", a);
return 0;
}
int a=20;
Answer: Option C
Was this answer helpful ?
extern int a is the declaration whereas int a = 20 is the definition
Was this answer helpful ?
More Questions on This Topic :
Question 7.
What are the types of linkages?
....
Submit Solution