Bloomberg LP Interview Question
Financial Software DevelopersStatic variable should never be in a header file - by definition. Static means the varible will have local linkage. From interface design point of view it means that the variable is part of the implementation which you don't want to expose in the interface. Static variables in .h don't make any sense.
The difference in question might be "in header file, if declared static, the variable would be of global file scope".
- Dilip September 26, 2010