What happens to uninitialized class members in c++? : <p>What happens to uninitialized class members in c++? If I have to do this, what should I take care of?</p>

<pre><code>#include &lt;iostream&gt; 
using namespace std;

class Foo {
    int attr1, attr2;   
public:
    Foo ();

Foo::Foo () {   attr1 = 5; }

Foo myThing(); 
</code></pre>
