Static initialization of object
<p>I have a global object which is declared before main function and a static object inside main.</p>

<ul>
<li>Which one of these uses (or do both?) static initialization?</li>
<li>I've heard that <code>A obj1</code> is also called static; why is that? </li>
</ul>

<p><br/></p>

<pre><code>class A { ... };

A obj1;

int main()
{
    static A obj2;
}
</code></pre>
