The following general rules will help you to keep global variable declarations and function declarations properly separated from their definitions:
extern
) and functions
(using function prototypes) repeatedly, so long as each declaration is the
same. Accordingly, you can place such declarations in header files that
you use to inform many source-code files about global variables and
functions.