When i compile and run the following code, codeblocks(windows 7 64-bit) issues a couple of warnings:-
#include<stdio.h>
#include<stdlib.h>
extern int i=10; //Warning
int main()
{
extern int i;
printf("%d\n",i);
}
int i;
The warnings are as follows:-
Line 3: warning: 'i' initialized and declared 'extern' [enabled by default]
Any explanation for this warning?