in C ,by default global variable have extern linkage
related theory
Linkages of identifiers
3) If the declaration of a file scope identifier for an object or a function contains the storage-class specifier static
, the identifier has internal linkage.
5) If the declaration of an identifier for a function has no storage-class specifier, its linkage is determined exactly as if it were declared with the storage-class specifier extern
. If the declaration of an identifier for an object has file scope and no storage-class specifier, its linkage is external.