Say If I write
extern int y;
and then I write
int y ;
so I cannot access the y variable anywhere now since it is uninitialized while the second one is initialized to zero but we say that default value of extern varibale is zero so then why is this extern int y declaration used globally ?
extern int y;
and then I write
int y ;
so I cannot access the y variable anywhere now since it is uninitialized while the second one is initialized to zero but we say that default value of extern varibale is zero so then why is this extern int y declaration used globally ?
Comment