I am learning C language, during which, I confront with global variables and extern keyword. I read about them on this site (Global variable in C are static or not) and found that
Global variables are extern by default
But I know that global variable's default value is 0
.
So, I am confused: how can it be possible that variables with extern
keyword are only declared and not defined.