case:1
int main(void)
{
extern int var = 0;
var = 10;
return 0;
}
case:2
#include<stdio.h>
extern int a;
int main()
{
extern int a;
int a=34;
printf("%d",a);
return 0;
}
In both cases it's error why so? Curious to know exactly how declaration of variable with extern differ locally and globally ?
More informative answer is most welcome.