Q:

What is the difference between global and static global variables?

0

What is the difference between global and static global variables?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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.
A non-static global variable  ===>>>  external linkage.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What are storage classes in C language?... >>
<< What is the difference between declaration and def...