Hello to all
Why I take warning on this code :
Is there any error? Why I take a warning: 'v' initialized and declared 'extern'|Code:#include<stdio.h> extern int v = 0; // Declaration and definition of an external int main(void) { v=5; printf("%d" , v); return 0; }
||=== Build finished: 0 errors, 1 warnings ===| ???
and what is the meaning of :
An extern declaration that initializes a variable serves as a definition of the variable. This rule prevents multiple extern declarations from initializing a variable in different ways. ??? any example???? of this??? in order to understand it better.
Thank you in advance