Computer Science, asked by shanthimelisha7383, 7 months ago

Output of following program
main()
{
extern int i;
i=20;
printf("%d",i);
}

Answers

Answered by kukugupta2007
0

Answer:

linker error

Explanation:

Linker error: undefined symbol '_i'. Explanation:

extern declaration specifies that the variable i is defined somewhere else. The compiler passes the external variable to be resolved by the linker. So compiler doesn't find any error. During linking the linker searches for the definition of i. Since it is not found the linker flags an error.

please mark my answer as brainliests

Similar questions