title: How is a static member in a class allocated?
body: <p>If I have a class like</p>
  
  <pre><code>class MyClass {
     public:
        int myMember1;
        int myMember2;
        int myMember3;
  };
  </code></pre>
  
  <p>Every time I instantiate an object of <code>MyClass</code> space for three consecutive <code>int</code> is allocated, what about when I have something like</p>
  
  <pre><code>class MyClass {
     public:
        static int myMember1;
        int myMember2;
        int myMember3;
  };
  </code></pre>
  
  <p>How the memory is allocated this time?</p>
  
  <p>I'm asking because I'm not entirely sure how the memory would be allocated when I declare multiple instance of the same class, is there a pointer to the static member maybe?</p>