Can someone explain when you\'re supposed to use the static keyword before global variables or constants defined in header files?
For example, lets say I have a head
Always use static in .c files unless you need to reference the object from a different .c module.
.c
Never use static in .h files, because you will create a different object every time it is included.
.h