Does each file get its own copy of the static variable?
<p>Suppose you have a static global variable in your header file, and you use this variable in your main.cpp.</p>

<pre><code>// header.h
static int variableOne = 100;

//main.cpp
   .
   .
   cout &lt;&lt; variableOne &lt;&lt; endl;
</code></pre>

<p>Will main.cpp get its own copy of <strong>variableOne</strong> (although the value is still 100...)? Or am I mixing this concept with extern (I know that extern tells the compiler that <strong>variableOne</strong> is defined elsewhere in the project...)</p>

<p>Thank you.</p>
