title: Align the start of an array in dynamic memory in C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5061392/aligned-memory-management">Aligned memory management?</a>  </p>
  </blockquote>
  
  
  
  <p>I have an array which I am declaring like this</p>
  
  <pre><code>int * myarray;
  int num_of_element;
  
  myarry = (int*) calloc(num_of_elements, sizeof(int));
  </code></pre>
  
  <p>The size of an int is 4 bytes however I want to ensure that my array starts on an 8 byte boundary - so I can efficiently load two values each time. Is there a different way or something else I can do?</p>