I have one doubt that I declared a global variable with statics.
file1.c
static int a=5; main() { func(); }
can there be access in another file2.c using extern?
file2.c
func() { extern int a; printf(a); }
or is it only a global variable declared without static that can be accessed using extern?
source share