Default constructors C++
<p>Lets say I have this class:</p>

<pre><code>class X {
public:
    int x;
};
</code></pre>

<p>I saw that if I create an instance of X locally, x will not be initialize to 0, only if I create it globally.<br>
Does this mean that the default constructor isn't synthesized by the compiler(I doubt it) for objects created  localy or it will be synthesized but not zero out x value, if this is the case why is that ?</p>
