title: memcpy(), what should the value of the size parameter be?
body: <p>I want to copy an <code>int</code> array to another <code>int</code> array. They use the same define for length so they'll always be of the same length.</p>
  <p>What are the pros/cons of the following two alternatives of the size parameter to <code>memcpy()</code>?</p>
  <pre><code>memcpy(dst, src, ARRAY_LENGTH*sizeof(int));
  </code></pre>
  <p>or</p>
  <pre><code>memcpy(dst, src, sizeof(dst));
  </code></pre>
  <p>Will the second option always work? Regardless of the content?</p>
  <p>One thing that favors the last one is that if the array were to change, it'll be some house-keeping to update the <code>memcpy()</code>'s.</p>