title: Are members of a C++ struct initialized to 0 by default?
body: <p>I have this <code>struct</code>:</p>
  
  <pre><code>struct Snapshot
  {
      double x; 
      int y;
  };
  </code></pre>
  
  <p>I want <code>x</code> and <code>y</code> to be 0. Will they be 0 by default or do I have to do:</p>
  
  <pre><code>Snapshot s = {0,0};
  </code></pre>
  
  <p>What are the other ways to zero out the structure?</p>