Global and static global variables have different linkages. It is the reason global variables can be accessed outside of the file but the static global variable only accesses within the file in which it is declared.
A static global variable ===>>> internal linkage. A non-static global variable ===>>> external linkage.
Answer:
Global and static global variables have different linkages. It is the reason global variables can be accessed outside of the file but the static global variable only accesses within the file in which it is declared.
A static global variable ===>>> internal linkage.
need an explanation for this answer? contact us directly to get an explanation for this answerA non-static global variable ===>>> external linkage.