title: what is the difference between struct {0} and memset 0
body: <p>Assume we have struct like this:</p>
  <pre><code>struct A
  {
      int x;
      int y;
  };
  </code></pre>
  <p>what is the difference between</p>
  <pre><code>A a = {0};
  </code></pre>
  <p>and</p>
  <pre><code>A a;
  memset(&amp;a,0,sizeof(A));
  </code></pre>