What's the best way to declare and define global variables? The best arrangement is to place each definition in some relevant .c file, with an external declaration in a header file.