ProAnswers.org

What's the best way to declare and define global variables?

In headers; this way, you can get link errors when you include the same header twice. Generally, you will have to define a variable everywhere you want to use it, and then declare it someplace so you know what it is